Skip to content
Closed
1 change: 1 addition & 0 deletions .github/workflows/auto-semver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ jobs:
permissions:
id-token: write
contents: read
packages: write
with:
tag: ${{ needs.update.outputs.tag }}
4 changes: 3 additions & 1 deletion .github/workflows/build-image-from-tag-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: Build image from version tag
permissions:
id-token: write
contents: read
packages: write
on:
push:
# XXX: Tags pushed via actions (i.e., auto-semver) are not able to trigger additional workflows;
Expand All @@ -21,8 +22,9 @@ on:
jobs:
build:
if: github.event_name == 'push' || github.event_name == 'pull_request'
uses: discoverygarden/docker-image-reusable-workflows/.github/workflows/build-image.yml@v1
uses: discoverygarden/docker-image-reusable-workflows/.github/workflows/build-image.yml@v2
secrets: inherit
with:
image-name: ${{ vars.DOCKER_IMAGE_NAME }}
tag: ${{ inputs.tag }}

3 changes: 2 additions & 1 deletion .github/workflows/rebuild-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: Rebuild image
permissions:
id-token: write
contents: read
packages: write
on:
schedule:
- cron: '47 4 1 * *'
Expand All @@ -20,7 +21,7 @@ on:

jobs:
build:
uses: discoverygarden/docker-image-reusable-workflows/.github/workflows/build-image.yml@v1
uses: discoverygarden/docker-image-reusable-workflows/.github/workflows/build-image.yml@v2
secrets: inherit
with:
env: ${{ inputs.env || github.event_name == 'pull_request' && 'dev' || 'prod' }}
Expand Down
Loading