We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tz=
type=ref
[...] tags: | type=ref,event=branch,priority=1001,suffix=.{{date 'YYYY-MM-DD' tz='America/New_York'}} [...]
Produces an error when using tz=. Removing the option resolves the problem but uses UTC.
Error: Parse error on line 1: ...{{date 'YYYY-MM-DD' tz -----------------------^ Expecting 'CLOSE_RAW_BLOCK', 'CLOSE', 'CLOSE_UNESCAPED', 'OPEN_SEXPR', 'CLOSE_SEXPR', 'ID', 'OPEN_BLOCK_PARAMS', 'STRING', 'NUMBER', 'BOOLEAN', 'UNDEFINED', 'NULL', 'DATA', got 'INVALID'
docker/metadata-action
ref
event=branch
I wanted to be able to specify the timezone to be America/New_York explicitly.
Workflow fails because of the error above.
# ./.github/workflows/release.yml name: Update Harbor Image on: push: branches: [master, main, gha-testing] workflow_dispatch: env: # For Harbor REGISTRY_URL: [snip] PROJECT_NAME: [snip] REPO_NAME: [snip] jobs: update-harbor-image: name: Update Harbor Image runs-on: sat-hosted steps: - uses: actions/checkout@v3 - uses: actions/checkout@v3 with: repository: my-org/org-actions path: org-actions - name: Docker Login uses: ./org-actions/docker-login with: username: ${{ secrets.HARBOR_USERNAME }} password: ${{ secrets.HARBOR_PASSWORD }} registry-url: ${{ env.REGISTRY_URL }} - name: Docker meta id: meta uses: docker/metadata-action@v4 with: images: | ${{ env.REGISTRY_URL }}/${{ env.PROJECT_NAME }}/${{ env.REPO_NAME }} tags: | type=ref,event=branch,priority=1001,suffix=.{{date 'YYYY-MM-DD' tz='America/New_York'}} type=schedule,pattern={{date 'YYYY-MM-DD' tz='America/New_York'}} type=semver,pattern={{raw}} type=sha - uses: ./org-actions/update-image name: Update [snip] Docker image with: image-tag: ${{ steps.meta.outputs.tags }}
n/a
The text was updated successfully, but these errors were encountered:
@ZaneH #251 has been merged but not yet released.
In the meantime you can use docker/metadata-action@master
docker/metadata-action@master
Sorry, something went wrong.
No branches or pull requests
Behaviour
Produces an error when using
tz=
. Removing the option resolves the problem but uses UTC.Steps to reproduce this issue
docker/metadata-action
ref
,event=branch
and add a {{date}} somewhere in the tagtz=
option to the {{date}} and watch for errors.Expected behaviour
I wanted to be able to specify the timezone to be America/New_York explicitly.
Actual behaviour
Workflow fails because of the error above.
Configuration
Logs
n/a
The text was updated successfully, but these errors were encountered: