Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
naoki9911 committed Nov 9, 2023
1 parent 23975dc commit 6780faa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
env:
STAGINGVERSION: ${{ github.ref_name }}
DOCKER_BUILD_ARGS: --push
PUSH_LATEST: true
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v1
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ build-example-$(1)-$(2):
--tag ${IMAGE_NAME} \
--platform linux/amd64 .
if [ "${PUSH_LATEST}" = "true" ]; then\
$(eval IMAGE_NAME_LATEST := ${EXAMPLE_IMAGE}-$1-$2:latest)
docker tag ${IMAGE_NAME} ${IMAGE_NAME_LATEST}
docker push ${IMAGE_NAME_LATEST}
$(eval IMAGE_NAME_LATEST := ${EXAMPLE_IMAGE}-$1-$2:latest) \
docker tag ${IMAGE_NAME} ${IMAGE_NAME_LATEST}; \
docker push ${IMAGE_NAME_LATEST}; \
fi
if [ "${LOAD_TO_KIND}" = "true" ]; then \
kind load docker-image ${IMAGE_NAME};\
Expand Down

0 comments on commit 6780faa

Please sign in to comment.