Skip to content

Merge branch 'develop' into staging #2

Merge branch 'develop' into staging

Merge branch 'develop' into staging #2

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