Skip to content

Commit

Permalink
master to main
Browse files Browse the repository at this point in the history
  • Loading branch information
dblanchette committed Nov 8, 2021
1 parent f0ff132 commit bbb49ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,20 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build Latest
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
run: |
docker build . -t ghcr.io/coveooss/credentials-sync:latest
docker push ghcr.io/coveooss/credentials-sync:latest
- name: Build Tag
if: github.ref != 'refs/heads/master'
if: github.ref != 'refs/heads/main'
run: |
export tag=$(cut -d'/' -f3 <<<'${{ github.ref }}')
docker build . -t ghcr.io/coveooss/credentials-sync:$tag
docker push ghcr.io/coveooss/credentials-sync:$tag
- name: Push release
if: github.ref != 'refs/heads/master'
if: github.ref != 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand Down

0 comments on commit bbb49ee

Please sign in to comment.