From ee153f024dd3967f0d805668ce4302b76c884f59 Mon Sep 17 00:00:00 2001 From: Olivier ORAND Date: Wed, 13 Mar 2024 10:42:38 +0000 Subject: [PATCH] chore(build): fix dockerhub image name we extract image from github repo name --- .github/workflows/docker-image.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 0a7ace19..196f81d8 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -13,7 +13,6 @@ env: DOCKER_FILE_PATH: . IMAGE: "ghcr.io/${{ github.repository }}" DOCKERHUB_ORG: elpaasoci - OCI_IMAGE: concourse-pipeline-resource jobs: build_and_publish: @@ -37,7 +36,12 @@ jobs: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - + - + id: gh-repo-name + run: | + echo "OCI_IMAGE=$(basename ${{ github.repository }})" >> $GITHUB_ENV + shell: bash + - name: publish image uses: docker/build-push-action@v5.1.0