Skip to content

Commit

Permalink
Prepare switch of renaming master to main branch (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbast authored Aug 24, 2023
1 parent ffad385 commit c467285
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/anaconda_amazonlinux_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build Anaconda3 amazonlinux Image
on:
push:
branches:
- master
- main
tags:
- 'anaconda3-*'
paths:
Expand All @@ -22,7 +22,7 @@ jobs:

- name: Login to DockerHub
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags')
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags')
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down Expand Up @@ -61,4 +61,4 @@ jobs:
platforms: linux/arm64/v8
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags') }}
push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags') }}
6 changes: 3 additions & 3 deletions .github/workflows/anaconda_debian_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build Anaconda3 Debian Image
on:
push:
branches:
- master
- main
tags:
- 'anaconda3-*'
paths:
Expand All @@ -22,7 +22,7 @@ jobs:

- name: Login to DockerHub
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags')
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags')
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down Expand Up @@ -59,4 +59,4 @@ jobs:
platforms: linux/amd64,linux/arm64/v8,linux/ppc64le,linux/s390x
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags') }}
push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags') }}
10 changes: 5 additions & 5 deletions .github/workflows/anaconda_pkg_build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build and publish Linux package builder images
on:
push:
branches:
- master
- main
tags:
- 'pkg-build-*'
paths:
Expand All @@ -22,14 +22,14 @@ jobs:

- name: Login to DockerHub
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags')
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags')
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to Public ECR
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags')
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags')
with:
registry: public.ecr.aws
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
BASEVERSION=7
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags') }}
push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags') }}

- name: Docker meta for Concourse
id: concourse-meta
Expand All @@ -97,4 +97,4 @@ jobs:
BASEVERSION=7
tags: ${{ steps.concourse-meta.outputs.tags }}
labels: ${{ steps.concourse-meta.outputs.labels }}
push: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags') }}
push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags') }}
8 changes: 4 additions & 4 deletions .github/workflows/concourse_rsync_resource.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build and publish the concourse-rsync-resource image
on:
push:
branches:
- master
- main
tags:
- 'crr-*'
paths:
Expand All @@ -24,14 +24,14 @@ jobs:

- name: Login to DockerHub
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to Public ECR
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
with:
registry: public.ecr.aws
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down Expand Up @@ -66,4 +66,4 @@ jobs:
file: ./concourse-rsync-resource/Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags') }}
push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags') }}
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: pre-commit
on:
push:
branches:
- master
- main
pull_request:

jobs:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/miniconda_debian_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build Miniconda3 Debian Image
on:
push:
branches:
- master
- main
tags:
- 'miniconda3-v*.*.*'
paths:
Expand All @@ -22,7 +22,7 @@ jobs:

- name: Login to DockerHub
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags')
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags')
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down Expand Up @@ -58,4 +58,4 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x
push: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags') }}
push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags') }}

0 comments on commit c467285

Please sign in to comment.