diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index be5a623..7399aa4 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -1,25 +1,16 @@ -name: Quiz App -run-name: ${{ gitea.actor }} is building Quiz App +name: Quiz App Testing +run-name: ${{ gitea.actor }} is testing Quiz App on: [push] jobs: Quiz Runner: runs-on: bash steps: - # - name: Ensure bash is installed - # run: | - # sudo apt-get update - # sudo apt-get install bash - run: apk add docker-compose - run: docker-compose --version - # - run: apt-get update && \ - # apt-get install -y git && \ - # apt-get clean && \ - # rm -rf /var/lib/apt/lists/* - run: docker --version - run: apk add git - run: apk add nodejs npm - name: Check out repository code uses: actions/checkout@v4 - - run: docker-compose up -d --build - # - run: apt-get install docker.io + # Run tests diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..2a486f6 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,17 @@ +name: Quiz App Deployment +run-name: ${{ gitea.actor }} is deploying Quiz App +on: + push: + branches: + - main + +jobs: + Quiz Runner: + runs-on: bash + steps: + - run: apk add docker-compose + - run: apk add git + - run: apk add nodejs npm + - name: Check out repository code + uses: actions/checkout@v4 + - run: docker-compose up -d --build