Skip to content

Commit

Permalink
ci- enable tagging a docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro committed Jan 22, 2022
1 parent 70f6803 commit 07783d2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ jobs:
- run: zigmod aq install 1/nektro/ghr
- run: ./make_release.sh ${{ secrets.GITHUB_TOKEN }}

# # Docker image
# - uses: docker/build-push-action@v1
# with:
# username: ${{ secrets.DOCKER_HUB_USER }}
# password: ${{ secrets.DOCKER_HUB_TOKEN }}
# repository: ${{ env.GITHUB_REPOSITORY }}
# tags: latest,r${{ env.RELEASE_NUM }}
# build_args: RELEASE_NUM=${{ env.RELEASE_NUM }}
# env:
# RELEASE_NUM: ${{ $(./release_num.sh) }}
# Docker image
- uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
repository: ${{ env.GITHUB_REPOSITORY }}
tags: latest,r${{ env.RELEASE_NUM }}
build_args: RELEASE_NUM=${{ env.RELEASE_NUM }}
env:
RELEASE_NUM: ${{ $(./release_num.sh) }}

0 comments on commit 07783d2

Please sign in to comment.