Skip to content

Commit

Permalink
feat: rename master main
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfedr committed May 13, 2024
1 parent 3366057 commit 1a2e23c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ jobs:
uses: docker/setup-buildx-action@v2

- name: Login to Docker Hub
if: steps.check-dir.outputs.skipdir != 'true' && github.ref == 'refs/heads/master'
if: steps.check-dir.outputs.skipdir != 'true' && github.ref == 'refs/heads/main'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Login to GAR
if: steps.check-dir.outputs.skipdir != 'true' && github.ref == 'refs/heads/master'
if: steps.check-dir.outputs.skipdir != 'true' && github.ref == 'refs/heads/main'
uses: docker/login-action@v2
with:
registry: europe-west1-docker.pkg.dev
Expand All @@ -120,7 +120,7 @@ jobs:
tags: |
type=raw,value=${{ matrix.version }}${{ matrix.variant }}
flavor: |
latest=${{ toJSON(matrix.version == '31' && matrix.variant == '' && github.ref == 'refs/heads/master') }}
latest=${{ toJSON(matrix.version == '31' && matrix.variant == '' && github.ref == 'refs/heads/main') }}
- name: Cache Mode
id: cache-mode
Expand All @@ -139,7 +139,7 @@ jobs:
uses: docker/build-push-action@v4
with:
context: ${{ matrix.version }}${{ matrix.variant }}
push: ${{ github.ref == 'refs/heads/master' }}
push: ${{ github.ref == 'refs/heads/main' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
Expand Down

0 comments on commit 1a2e23c

Please sign in to comment.