Merge pull request #33 from roman-khimov/add-image-push

Makefile: add simple image-push target
This commit is contained in:
Roman Khimov 2021-04-30 19:00:54 +03:00 committed by GitHub
commit 727ec9b22f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -79,4 +79,6 @@ jobs:
- name: Push image with 'latest' tag to registry - name: Push image with 'latest' tag to registry
if: ${{ github.event_name == 'release' && github.event.release.target_commitish == 'master' }} if: ${{ github.event_name == 'release' && github.event.release.target_commitish == 'master' }}
run: make image-push-latest run: make image-push
env:
HUB_TAG: latest

View file

@ -66,6 +66,11 @@ image:
-f Dockerfile \ -f Dockerfile \
-t $(HUB_IMAGE):$(HUB_TAG) . -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 # Build dirty Docker image
dirty-image: dirty-image:
@echo "⇒ Build NeoFS HTTP Gateway dirty docker image " @echo "⇒ Build NeoFS HTTP Gateway dirty docker image "