Skip to content

Don't push duplicates. #7

Don't push duplicates.

Don't push duplicates. #7

# This job builds and publishes a docker image for the test issuer frontend to
# the dockerhub image repository.
name: Create and publish a Docker image for the issuer frontend.
# Configures this workflow to run every time a change is pushed to the branch called `release`.
on:
# Only allow manual builds.
workflow_dispatch: # allows manual trigger
push:
branches: build-issuer-front-end # Temporary
env:
REGISTRY: docker.io
IMAGE_NAME: issuer-front-end
jobs:
build-and-push-image:
runs-on: ubuntu-latest
environment: testnet-builds
env:
FULL_IMAGE_TAG: ${{ env.REGISTRY }}/concordium/${{ env.IMAGE_NAME}}:${{ steps.meta.outputs.version }}

Check failure on line 21 in .github/workflows/test-issuer-frontend-docker.yml

View workflow run for this annotation

GitHub Actions / Create and publish a Docker image for the issuer frontend.

Invalid workflow file

The workflow is not valid. .github/workflows/test-issuer-frontend-docker.yml (Line: 21, Col: 23): Unrecognized named-value: 'env'. Located at position 1 within expression: env.REGISTRY .github/workflows/test-issuer-frontend-docker.yml: (Line: 24, Col: 14, Idx: 771) - (Line: 24, Col: 15, Idx: 772): While parsing a tag, did not find expected tag URI.
steps:
- name: Check if image already exists and terminate if it does.
run: ! docker manifest inspect $FULL_IMAGE_TAG > /dev/null
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
# Uses the `docker/login-action` action to log in to the Container registry.
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract tag from package.json
id: meta
run: echo "version=$(jq -r .version test-tools/issuer-front-end/package.json)" > "$GITHUB_OUTPUT"
- name: Build and push Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
file: ./test-tools/issuer-front-end/Dockerfile
push: true
platforms: linux/amd64
tags: ${{ env.FULL_IMAGE_TAG }}