Skip to content

Commit

Permalink
Update branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
xavivars authored Jan 8, 2024
1 parent 68c2938 commit 28ac896
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-push-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build Docker image and push to repositories
on:
# run it on push to the default repository branch
push:
branches: [master]
branches: [main]
# run it during pull request
pull_request:
# run it weekly
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
ghcr.io/apertium/base:latest
# apertium/base:latest
# build on feature branches, push only on main branch
push: ${{ github.ref == 'refs/heads/master' }}
push: ${{ github.ref == 'refs/heads/main' }}

- name: Build image and push to Docker Hub and GitHub Container Registry
uses: docker/build-push-action@v3
Expand All @@ -58,7 +58,7 @@ jobs:
ghcr.io/apertium/base:release
# apertium/base:release
# build on feature branches, push only on main branch
push: ${{ github.ref == 'refs/heads/master' }}
push: ${{ github.ref == 'refs/heads/main' }}

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit 28ac896

Please sign in to comment.