Skip to content

Commit

Permalink
[workaround]docker build: no cache
Browse files Browse the repository at this point in the history
  • Loading branch information
4eUeP committed Jul 9, 2024
1 parent 5c59fc2 commit 57773a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
--build-arg LD_IMAGE=${{ matrix.ld_image }} \
--build-arg HSTREAM_VERSION=${{ env.LATEST_TAG }} \
--build-arg HSTREAM_VERSION_COMMIT=${{ env.CURRENT_COMMIT }} \
--build-arg BUILD_CACHE="no_cache" \
-t ${IMAGE_NAME}:${{ matrix.tag }}
- name: Push image to dockerhub
Expand All @@ -72,6 +73,7 @@ jobs:
--build-arg LD_IMAGE=${{ matrix.ld_image }} \
--build-arg HSTREAM_VERSION=${{ env.LATEST_TAG }} \
--build-arg HSTREAM_VERSION_COMMIT=${{ env.CURRENT_COMMIT }} \
--build-arg BUILD_CACHE="no_cache" \
--target builder \
-t ${BUILDER_IMAGE_NAME}:latest
# For cache
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Publish latest
on:
push:
branches: [master, main]
pull_request:

env:
IMAGE_NAME: "hstreamdb/hstream"
Expand Down Expand Up @@ -60,6 +61,7 @@ jobs:
--build-arg LD_IMAGE=${{ matrix.ld_image }} \
--build-arg HSTREAM_VERSION=${{ env.LATEST_TAG }} \
--build-arg HSTREAM_VERSION_COMMIT=${{ env.CURRENT_COMMIT }} \
--build-arg BUILD_CACHE="no_cache" \
-t ${IMAGE_NAME}:${{ matrix.tag }}
- name: Push image to dockerhub
Expand All @@ -72,6 +74,7 @@ jobs:
--build-arg LD_IMAGE=${{ matrix.ld_image }} \
--build-arg HSTREAM_VERSION=${{ env.LATEST_TAG }} \
--build-arg HSTREAM_VERSION_COMMIT=${{ env.CURRENT_COMMIT }} \
--build-arg BUILD_CACHE="no_cache" \
--target builder \
-t ${BUILDER_IMAGE_NAME}:latest
# For cache
Expand Down

0 comments on commit 57773a4

Please sign in to comment.