Skip to content

Support target stage in build-production #4

Support target stage in build-production

Support target stage in build-production #4

name: Deploy Staging on Release
on:
release:
types: [ released ]
jobs:
build-staging:
name: Build staging ${{ github.event.release.tag_name }}
# uses: mlibrary/lauth/.github/workflows/build-production.yml@v1
uses: ./.github/workflows/build-production.yml@v1

Check failure on line 11 in .github/workflows/deploy-staging.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy-staging.yml

Invalid workflow file

invalid value workflow reference: cannot specify version when calling local workflows
with:
image_name: ${{ vars.IMAGE_NAME }}
tag: ${{ github.event.release.tag_name }}
dockerfile: ./lauth/Dockerfile
target: production
secrets: inherit
deploy-staging:
needs: build-staging
name: Deploy to staging
uses: mlibrary/platform-engineering-workflows/.github/workflows/deploy.yml@v1
with:
image: ghcr.io/mlibrary/${{ vars.IMAGE_NAME }}:${{ github.event.release.tag_name }}
file: environments/lauth/staging/web-image.txt
CONFIG_REPO_RW_APP_ID: ${{ vars.CONFIG_REPO_RW_APP_ID }}
CONFIG_REPO_RW_INSTALL_ID: ${{ vars.CONFIG_REPO_RW_INSTALL_ID }}
CONFIG_REPO_FULL_NAME: ${{ vars.CONFIG_REPO_FULL_NAME }}
secrets: inherit