Skip to content

Update discoverygarden/docker-image-reusable-workflows action to v2 - autoclosed #29

Update discoverygarden/docker-image-reusable-workflows action to v2 - autoclosed

Update discoverygarden/docker-image-reusable-workflows action to v2 - autoclosed #29

---
name: Build image from version tag
permissions:
id-token: write
contents: read
on:
push:
# XXX: Tags pushed via actions (i.e., auto-semver) are not able to trigger additional workflows;
# they should instead go via an additional workflow_call.
tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ]
pull_request:
branches: [ main ]
workflow_call:
inputs:
tag:
description: Base tag to build.
required: false
type: string
jobs:
build:

Check failure on line 22 in .github/workflows/build-image-from-tag-push.yml

View workflow run for this annotation

GitHub Actions / Build image from version tag

Invalid workflow file

The workflow is not valid. .github/workflows/build-image-from-tag-push.yml (Line: 22, Col: 3): Error calling workflow 'discoverygarden/docker-image-reusable-workflows/.github/workflows/build-image.yml@v2'. The workflow is requesting 'packages: write', but is only allowed 'packages: none'.
if: github.event_name == 'push' || github.event_name == 'pull_request'
uses: discoverygarden/docker-image-reusable-workflows/.github/workflows/build-image.yml@v2
secrets: inherit
with:
image-name: ${{ vars.DOCKER_IMAGE_NAME }}
tag: ${{ inputs.tag }}