From 7fd06846e5c83d894a80d7c3a5d881519af31fb6 Mon Sep 17 00:00:00 2001 From: MigBash <20924663+migbash@users.noreply.github.com> Date: Tue, 10 Dec 2024 10:46:58 +0100 Subject: [PATCH] ci(github): update test actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [1] ──── Update 'pr.main.test.yml' for tesitng 'github actions'. [2] ──── Update 'Makefile' for testing 'github actions'. --- .github/workflows/pr.main.test.yml | 27 +++++++++++++-------------- Makefile | 8 -------- 2 files changed, 13 insertions(+), 22 deletions(-) diff --git a/.github/workflows/pr.main.test.yml b/.github/workflows/pr.main.test.yml index 420d31b9..e4ed966a 100644 --- a/.github/workflows/pr.main.test.yml +++ b/.github/workflows/pr.main.test.yml @@ -29,23 +29,22 @@ jobs: username: ${{ secrets.ENV_DOCKER_HUB_USERNAME }} password: ${{ secrets.ENV_DOCKER_HUB_PASSWORD }} - - name: "STEP |:| testing (1)" + - name: "STEP /:/ build docker image" run: | - make docker-test + make docker-image-build + # [🐞] + docker images + # [🐞] + docker images betarena-scores --format "{{.ID}}" --no-trunc --filter "label=project=Scores" + echo "ENV_IMAGE_TAG_ID=$(docker images betarena-scores --format "{{.ID}}" --no-trunc --filter "label=project=Scores")" >> $GITHUB_ENV env: TEST_ENV_VALUE: "HELLO" ENV_DOCKER_HUB_USERNAME: ${{ secrets.ENV_DOCKER_HUB_USERNAME }} - # - name: "STEP |:| build & publish docker image" - # run: | - # make docker-image-build - # # [🐞] - # docker images - # # [🐞] - # docker images betarena-scores --format "{{.ID}}" --no-trunc --filter "label=project=Scores" - # echo "ENV_IMAGE_TAG_ID=$(docker images betarena-scores --format "{{.ID}}" --no-trunc --filter "label=project=Scores")" >> $GITHUB_ENV - # # [🐞] - # echo "${{ env.ENV_IMAGE_TAG_ID }}" - # make docker-image-publish-to-registry \ - # ENV_IMAGE_TAG_ID="${{ env.ENV_IMAGE_TAG_ID }}" + - name: "STEP /:/ publish docker image" + run: | + make docker-image-publish-to-registry + env: + ENV_IMAGE_TAG_ID: ${{ env.ENV_IMAGE_TAG_ID }} + ENV_DOCKER_HUB_USERNAME: ${{ secrets.ENV_DOCKER_HUB_USERNAME }} # \ No newline at end of file diff --git a/Makefile b/Makefile index d378bf00..cd488b41 100644 --- a/Makefile +++ b/Makefile @@ -536,14 +536,6 @@ heroku-target-bash: # │ 🐳 │ DOCKER │ # ╰──────────────────────────────────────────────────────────────────────────────────╯ -.ONESHELL: -docker-test: - echo \ - "$(TEST_ENV_VALUE)" \ - "$(ENV_DOCKER_HUB_USERNAME)" - # -# - .ONESHELL: docker-image-build: @