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:
4
.github/workflows/codeql-analysis.yml
vendored
4
.github/workflows/codeql-analysis.yml
vendored
@@ -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'
|
||||
|
||||
|
||||
8
.github/workflows/docker.yml
vendored
8
.github/workflows/docker.yml
vendored
@@ -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
|
||||
|
||||
4
.github/workflows/gotests.yml
vendored
4
.github/workflows/gotests.yml
vendored
@@ -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'
|
||||
|
||||
|
||||
4
.github/workflows/govulncheck.yml
vendored
4
.github/workflows/govulncheck.yml
vendored
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user