Skip to content

Commit b3d7cfa

Browse files
ISX-86: Update workflows. (#8)
* use dev branch * push * test * test * fix perms * are perms needed? * yes they are * add perms to remaning workflows * test * test * test * test * Update .github/workflows/build-image-from-tag-push.yml * Also bump the version in the rebuild workflow. --------- Co-authored-by: Alexander Cairns <[email protected]>
1 parent 29781f8 commit b3d7cfa

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

auto-semver.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ jobs:
2323
permissions:
2424
id-token: write
2525
contents: read
26+
packages: write
2627
with:
2728
tag: ${{ needs.update.outputs.tag }}

build-image-from-tag-push.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ name: Build image from version tag
44
permissions:
55
id-token: write
66
contents: read
7+
packages: write
78
on:
89
push:
910
# XXX: Tags pushed via actions (i.e., auto-semver) are not able to trigger additional workflows;
@@ -21,8 +22,9 @@ on:
2122
jobs:
2223
build:
2324
if: github.event_name == 'push' || github.event_name == 'pull_request'
24-
uses: discoverygarden/docker-image-reusable-workflows/.github/workflows/build-image.yml@v1
25+
uses: discoverygarden/docker-image-reusable-workflows/.github/workflows/build-image.yml@v2
2526
secrets: inherit
2627
with:
2728
image-name: ${{ vars.DOCKER_IMAGE_NAME }}
2829
tag: ${{ inputs.tag }}
30+

rebuild-image.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ name: Rebuild image
44
permissions:
55
id-token: write
66
contents: read
7+
packages: write
78
on:
89
schedule:
910
- cron: '47 4 1 * *'
@@ -20,7 +21,7 @@ on:
2021

2122
jobs:
2223
build:
23-
uses: discoverygarden/docker-image-reusable-workflows/.github/workflows/build-image.yml@v1
24+
uses: discoverygarden/docker-image-reusable-workflows/.github/workflows/build-image.yml@v2
2425
secrets: inherit
2526
with:
2627
env: ${{ inputs.env || github.event_name == 'pull_request' && 'dev' || 'prod' }}

0 commit comments

Comments
 (0)