Skip to content

Commit

Permalink
hotfix(GHA)
Browse files Browse the repository at this point in the history
  • Loading branch information
dduportal authored Mar 12, 2024
1 parent d6f7ca9 commit 2bd6643
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ jobs:
run: make README
#### Deployment Zone: only on main branch (or tags)
- name: Login to Docker Hub for Deployment
if: contains('refs/heads/main', github.ref) || contains('refs/tags/', github.ref)
if: startsWith('refs/tag', github.ref) || startsWith('refs/heads/main', github.ref)
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Deploy
if: contains('refs/heads/main', github.ref) || contains('refs/tags/', github.ref)
if: startsWith('refs/tag', github.ref) || startsWith('refs/heads/main', github.ref)
run: |
export IMAGE_VERSION="$(echo ${GITHUB_REF#refs/tags/} | grep -v 'refs/heads')"
export IMAGE_NAME="asciidoctor/docker-asciidoctor"
Expand Down

0 comments on commit 2bd6643

Please sign in to comment.