Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #33 from roman-khimov/add-image-push
Browse files Browse the repository at this point in the history
Makefile: add simple image-push target
  • Loading branch information
roman-khimov authored Apr 30, 2021
2 parents 12859c2 + 93fcaff commit 727ec9b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/publish_to_dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit 727ec9b

Please sign in to comment.