Skip to content

Commit

Permalink
ci(github): update test actions
Browse files Browse the repository at this point in the history
[1] ────
Update 'pr.main.test.yml' for tesitng 'github actions'.
[2] ────
Update 'Makefile' for testing 'github actions'.
  • Loading branch information
migbash committed Dec 10, 2024
1 parent 477533c commit 7fd0684
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 22 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/pr.main.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
#
8 changes: 0 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -536,14 +536,6 @@ heroku-target-bash:
# │ 🐳 │ DOCKER │
# ╰──────────────────────────────────────────────────────────────────────────────────╯

.ONESHELL:
docker-test:
echo \
"$(TEST_ENV_VALUE)" \
"$(ENV_DOCKER_HUB_USERNAME)"
#
#

.ONESHELL:
docker-image-build:
@
Expand Down

0 comments on commit 7fd0684

Please sign in to comment.