Merge branch 'develop' into staging #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: backend-staging-workflow | |
on: | |
workflow_run: | |
workflows: ["backend-test"] | |
types: | |
- completed | |
push: | |
branches: | |
- staging | |
paths: | |
- 'backend/**' | |
- compose.yml | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: setup doctl | |
uses: digitalocean/action-doctl@v2 | |
with: | |
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} | |
- name: Login to Docker registry | |
run: doctl registry login --context github-actions | |
- name: Build Docker image | |
run: docker compose build | |
- name: Tag Docker image | |
run: docker tag bounswe2024group1-backend:latest registry.digitalocean.com/semantic-browse/backend-staging:latest | |
- name: Push Docker image | |
run: docker push registry.digitalocean.com/semantic-browse/backend-staging:latest | |