From 053634469da9b34cae04f41947c34e7e9ed5d4d1 Mon Sep 17 00:00:00 2001 From: Vasco Guita Date: Wed, 21 Dec 2022 16:51:56 +0100 Subject: [PATCH] refactor3 --- .github/workflows/docker.yml | 2 +- .github/workflows/release.yml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 983046f2f2..0c6185c8df 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -33,7 +33,7 @@ jobs: with: context: . file: ${{ inputs.file }} - tags: ${{ inputs.tag }} + tags: ${{ (inputs.push && format('{0}/', secrets.DOCKERHUB_ORGANIZATION)) || '' }}${{ inputs.tag }} load: ${{ inputs.load }} push: ${{ inputs.push }} - name: Upload ${{ inputs.tag }} Docker image to artifacts diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f3bb684828..1795dc08a4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,8 +35,7 @@ jobs: - image: revad-ceph tag: revad:${{ github.ref_name }}-ceph uses: ./.github/workflows/docker.yml - secrets: inherit with: file: docker/Dockerfile.${{ matrix.image }} - tag: ${{ secrets.DOCKERHUB_ORGANIZATION }}/${{ matrix.tag }} + tag: ${{ matrix.tag }} push: true