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: @