diff --git a/.github/workflows/deploy-development.yml b/.github/workflows/deploy-development.yml index 46504434..b3a1424c 100644 --- a/.github/workflows/deploy-development.yml +++ b/.github/workflows/deploy-development.yml @@ -12,6 +12,7 @@ jobs: secrets: inherit with: branch: ${{ github.ref_name }} + ci-cd: if: | always() && @@ -26,6 +27,16 @@ jobs: contents: read id-token: write secrets: inherit + + push-docker: + needs: [ci-cd] + uses: libops/actions/.github/workflows/build-push-sh.yml@main + with: + environment: ${{ github.ref_name }} + permissions: + contents: read + secrets: inherit + sync-new-environment: needs: [create-environment, ci-cd] uses: libops/actions/.github/workflows/sync-db.yml@main diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index 99340703..38c8b956 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -12,3 +12,12 @@ jobs: contents: read id-token: write secrets: inherit + + push-docker: + needs: [deploy] + uses: libops/actions/.github/workflows/build-push-sh.yml@main + with: + environment: production + permissions: + contents: read + secrets: inherit