1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00

ci: Rename master branch to main

These days `main` is more common, and I find it more intuitive.
This commit is contained in:
Alberto Bertogli
2024-04-19 18:57:30 +01:00
parent 7a2e49c849
commit 6ff08b1ec2
6 changed files with 15 additions and 15 deletions

View File

@@ -2,10 +2,10 @@ name: "CodeQL"
on:
push:
branches: [ "master", "next" ]
branches: [ "main", "next" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master", "next" ]
branches: [ "main", "next" ]
schedule:
- cron: '29 21 * * 6'

View File

@@ -2,11 +2,11 @@ name: "docker"
on:
push:
branches: [ "master", "next" ]
branches: [ "main", "next" ]
tags: [ "v*", "test-tag-*" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master", "next" ]
branches: [ "main", "next" ]
schedule:
- cron: '29 21 * * 6'
@@ -77,7 +77,7 @@ jobs:
docker tag chasquid index.docker.io/${{ secrets.DOCKER_REGISTRY_USER }}/chasquid:$GITHUB_REF_NAME
docker push index.docker.io/${{ secrets.DOCKER_REGISTRY_USER }}/chasquid:$GITHUB_REF_NAME
- name: Dockerhub tag latest
if: env.HAS_DOCKER && env.GITHUB_REF_NAME == 'master'
if: env.HAS_DOCKER && env.GITHUB_REF_NAME == 'main'
run: |
docker tag chasquid index.docker.io/${{ secrets.DOCKER_REGISTRY_USER }}/chasquid:latest
docker push index.docker.io/${{ secrets.DOCKER_REGISTRY_USER }}/chasquid:latest
@@ -96,7 +96,7 @@ jobs:
docker tag chasquid registry.gitlab.com/albertito/chasquid:$GITHUB_REF_NAME
docker push registry.gitlab.com/albertito/chasquid:$GITHUB_REF_NAME
- name: Gitlab tag latest
if: env.HAS_GITLAB && env.GITHUB_REF_NAME == 'master'
if: env.HAS_GITLAB && env.GITHUB_REF_NAME == 'main'
run: |
docker tag chasquid registry.gitlab.com/albertito/chasquid:latest
docker push registry.gitlab.com/albertito/chasquid:latest

View File

@@ -2,10 +2,10 @@ name: "gotests"
on:
push:
branches: [ "master", "next" ]
branches: [ "main", "next" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master", "next" ]
branches: [ "main", "next" ]
schedule:
- cron: '29 21 * * 6'

View File

@@ -2,10 +2,10 @@ name: "govulncheck"
on:
push:
branches: [ "master", "next" ]
branches: [ "main", "next" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master", "next" ]
branches: [ "main", "next" ]
schedule:
- cron: '29 21 * * 6'