Skip to content

Commit

Permalink
Merge pull request #12 from camaoag/fix-publish_action
Browse files Browse the repository at this point in the history
ci: fix publish to Dockerhub
  • Loading branch information
secustor authored Jun 30, 2021
2 parents edd4797 + 3285712 commit 79e1c53
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
on: release
name: Docker-Publish

on:
- release

jobs:
docker:
Expand All @@ -10,6 +13,9 @@ jobs:
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Setup build env
run: echo "BUILD_TARGET=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Login to DockerHub
uses: docker/login-action@v1
with:
Expand All @@ -20,6 +26,4 @@ jobs:
with:
context: .
push: true
tags:
- camao/cert-manager-webhook-project-pinto:latest
- camao/cert-manager-webhook-project-pinto:$GITHUB_REF
tags: camao/cert-manager-webhook-project-pinto:latest,camao/cert-manager-webhook-project-pinto:${{ env.BUILD_TARGET }}

0 comments on commit 79e1c53

Please sign in to comment.