From b74495443fdeed71e07a064f2ea44b039cd7b083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Bizjak?= Date: Thu, 11 Apr 2024 09:54:06 +0200 Subject: [PATCH] Remove duplicate job. --- .../workflows/release-euroe-demo-docker.yml | 53 ------------------- 1 file changed, 53 deletions(-) delete mode 100644 .github/workflows/release-euroe-demo-docker.yml diff --git a/.github/workflows/release-euroe-demo-docker.yml b/.github/workflows/release-euroe-demo-docker.yml deleted file mode 100644 index 0d43efc8..00000000 --- a/.github/workflows/release-euroe-demo-docker.yml +++ /dev/null @@ -1,53 +0,0 @@ -# This job builds and publishes a docker image for the euroe demo dApp to -# the dockerhub image repository. -name: Create and publish a Docker image for the euroe demo dApp. - -on: - workflow_dispatch: # allows manual trigger - - push: - tags: - - 'euroe-demo/*.*.*' - -env: - REGISTRY: docker.io - IMAGE_NAME: dapp-euroe-demo - -jobs: - build-and-push-image: - runs-on: ubuntu-latest - environment: testnet-deployments - steps: - - 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: | - export VERSION=$(jq -r .version euroe-demo/package.json) - export FULL_IMAGE_TAG="${{ env.REGISTRY }}/concordium/$IMAGE_NAME:$VERSION" - echo "::notice FULL_IMAGE_TAG=${FULL_IMAGE_TAG}" - # Make sure the image does not exist. Abort if we can retrieve any metadata. - if docker manifest inspect ${FULL_IMAGE_TAG} > /dev/null; then - echo "::error ${FULL_IMAGE_TAG} already exists" - exit 1 - else - # Store the full image tag into a tag variable for the following step. - echo "tag=${FULL_IMAGE_TAG}" > "$GITHUB_OUTPUT" - fi - - name: Build and push Docker image - uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 - with: - context: ./euroe-demo - file: ./euroe-demo/scripts/Dockerfile - push: true - platforms: linux/amd64 - tags: ${{ steps.meta.outputs.tag }} \ No newline at end of file