diff --git a/.github/workflows/build-delivery-service.yml b/.github/workflows/deploy-delivery-service.yml similarity index 85% rename from .github/workflows/build-delivery-service.yml rename to .github/workflows/deploy-delivery-service.yml index 092d70d..d178b9d 100644 --- a/.github/workflows/build-delivery-service.yml +++ b/.github/workflows/deploy-delivery-service.yml @@ -1,4 +1,4 @@ -name: Build delivery service +name: Deploy delivery service on: push: @@ -12,7 +12,7 @@ on: # - main jobs: - call-build-docker: + build: # There is currently no way to combine event triggers "if branch is main AND file is changed" if: github.ref_name == 'main' uses: ./.github/workflows/build-docker.yml @@ -24,3 +24,6 @@ jobs: with: target: final-delivery-service image_name: ${{ github.repository }} + deploy: + needs: build + uses: ./.github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 30e3971..0b4da83 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,9 +6,10 @@ concurrency: on: registry_package: - types: [updated] + types: [updated, published] # Allow manual update workflow_dispatch: + workflow_call: jobs: deploy: