From a1f23d33d38cb0b2edec944894dcd4e55d394846 Mon Sep 17 00:00:00 2001 From: Abdelkader Boudih Date: Mon, 8 Apr 2024 19:43:19 +0000 Subject: [PATCH] chore: The GitHub workflow push.yml was updated to use the repository owner's Docker images instead of fixed ones. This change allows for more flexibility and control when using Docker images, and ensures that the correct images are used based on the repository owner. --- .github/workflows/push-dev.yml | 8 ++++---- .github/workflows/push.yml | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/push-dev.yml b/.github/workflows/push-dev.yml index e5b3e52bdd..7bb5bbc926 100644 --- a/.github/workflows/push-dev.yml +++ b/.github/workflows/push-dev.yml @@ -20,8 +20,8 @@ jobs: - uses: actions/checkout@v4 - run: | GITTAG=$(git rev-parse HEAD | head -c 8) - docker build -t codenotary/immudb-dev1:$GITTAG . - docker image tag codenotary/immudb-dev1:$GITTAG codenotary/immudb-dev1:latest + docker build -t ${{ vars.DOCKER_HUB_USER }}/immudb-dev1:$GITTAG . + docker image tag ${{ vars.DOCKER_HUB_USER }}/immudb-dev1:$GITTAG ${{ vars.DOCKER_HUB_USER }}/immudb-dev1:latest docker login -u "${{ secrets.REGISTRY_USER }}" -p "${{ secrets.REGISTRY_PASS }}" - docker image push codenotary/immudb-dev1:$GITTAG - docker image push codenotary/immudb-dev1:latest + docker image push ${{ vars.DOCKER_HUB_USER }}/immudb-dev1:$GITTAG + docker image push ${{ vars.DOCKER_HUB_USER }}/immudb-dev1:latest diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index efee7a85d8..3a1a0e2120 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -221,12 +221,12 @@ jobs: env: JOB_NAME: ${{ github.job }} JOB_ID: ${{ github.run_id }} - DOCKER_IMAGE_IMMUDB: "codenotary/immudb" - DOCKER_IMAGE_IMMUDB_FIPS: "codenotary/immudb-fips" - DOCKER_IMAGE_IMMUADMIN: "codenotary/immuadmin" - DOCKER_IMAGE_IMMUADMIN_FIPS: "codenotary/immuadmin-fips" - DOCKER_IMAGE_IMMUCLIENT: "codenotary/immuclient" - DOCKER_IMAGE_IMMUCLIENT_FIPS: "codenotary/immuclient-fips" + DOCKER_IMAGE_IMMUDB: "${{ vars.DOCKER_HUB_USER }}/immudb" + DOCKER_IMAGE_IMMUDB_FIPS: "${{ vars.DOCKER_HUB_USER }}/immudb-fips" + DOCKER_IMAGE_IMMUADMIN: "${{ vars.DOCKER_HUB_USER }}/immuadmin" + DOCKER_IMAGE_IMMUADMIN_FIPS: "${{ vars.DOCKER_HUB_USER }}/immuadmin-fips" + DOCKER_IMAGE_IMMUCLIENT: "${{ vars.DOCKER_HUB_USER }}/immuclient" + DOCKER_IMAGE_IMMUCLIENT_FIPS: "${{ vars.DOCKER_HUB_USER }}/immuclient-fips" DOCKER_BUILDKIT: "1" DEBIAN_VERSION: bullseye-slim ALMA_VERSION: almalinux-8-minimal