forked from TrueCloudLab/frostfs-http-gw
Merge pull request #33 from roman-khimov/add-image-push
Makefile: add simple image-push target
This commit is contained in:
commit
727ec9b22f
2 changed files with 8 additions and 1 deletions
4
.github/workflows/publish_to_dockerhub.yml
vendored
4
.github/workflows/publish_to_dockerhub.yml
vendored
|
@ -79,4 +79,6 @@ jobs:
|
|||
|
||||
- name: Push image with 'latest' tag to registry
|
||||
if: ${{ github.event_name == 'release' && github.event.release.target_commitish == 'master' }}
|
||||
run: make image-push-latest
|
||||
run: make image-push
|
||||
env:
|
||||
HUB_TAG: latest
|
||||
|
|
5
Makefile
5
Makefile
|
@ -66,6 +66,11 @@ image:
|
|||
-f Dockerfile \
|
||||
-t $(HUB_IMAGE):$(HUB_TAG) .
|
||||
|
||||
# Push Docker image to the hub
|
||||
image-push:
|
||||
@echo "⇒ Publish image"
|
||||
@docker push $(HUB_IMAGE):$(HUB_TAG)
|
||||
|
||||
# Build dirty Docker image
|
||||
dirty-image:
|
||||
@echo "⇒ Build NeoFS HTTP Gateway dirty docker image "
|
||||
|
|
Loading…
Reference in a new issue