You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
name: 'release'on:
release:
types: [published]jobs:
push_to_registry:
name: Push Docker image to GitHub Packages tagged with "latest" and version number.runs-on: ubuntu-latestpermissions:
contents: readpackages: writesteps:
- name: Checkoutuses: actions/checkout@v2
- name: Docker metaid: metauses: docker/metadata-action@v3with:
# list of Docker images to use as base name for tagsimages: | ghcr.io/TranslatorSRI/filter_results_top_n# add latest tag when appropriateflavor: | latest=auto# generate Docker tags based on the following events/attributestags: | type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}} type=sha
- name: Set up QEMUuses: docker/setup-qemu-action@v1
- name: Set up Docker Buildxuses: docker/setup-buildx-action@v1
- name: Login to GHCRuses: docker/login-action@v1with:
registry: ghcr.iousername: ${{ github.repository_owner }}password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and pushuses: docker/build-push-action@v2with:
context: .push: truetags: ${{ steps.meta.outputs.tags }}labels: ${{ steps.meta.outputs.labels }}
A workaround is simply to avoid double quotes in the repository description.
A potential solution is to escape the quotes in the labels by doubling them: docker/build-push-action#245 (comment), but this may not be kind to other uses of the metadata output.
The text was updated successfully, but these errors were encountered:
Behaviour
Steps to reproduce this issue
labels: ${{ steps.meta.outputs.labels }}
Expected behaviour
I hoped that this would run without errors and push a docker image.
Actual behaviour
docker/build-push-action fails with
Error: Invalid Opening Quote: a quote is found inside a field at line 2
Configuration
Logs
logs_7.zip
Notes
A workaround is simply to avoid double quotes in the repository description.
A potential solution is to escape the quotes in the labels by doubling them: docker/build-push-action#245 (comment), but this may not be kind to other uses of the metadata output.
The text was updated successfully, but these errors were encountered: