Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
fix: rename master => main
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgfr committed Mar 28, 2022
1 parent 904c295 commit 2f5e311
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 43 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ name: "CodeQL"

on:
push:
branches: ["master"]
branches: ["main"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["master"]
branches: ["main"]
schedule:
- cron: "16 1 * * 5"

Expand Down
36 changes: 18 additions & 18 deletions .github/workflows/preproduction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Preproduction
on:
push:
branches:
- master
- main
tags-ignore:
- v*

Expand All @@ -16,16 +16,16 @@ jobs:
name: Build & Register application
runs-on: ubuntu-latest
steps:
- name: Get commit sha
run: |
- name: Get commit sha
run: |
echo "GITHUB_SHA=${GITHUB_SHA}" >> $GITHUB_ENV
- name: Use autodevops build and register
uses: SocialGouv/actions/autodevops-build-register@v1
with:
environment: preprod
imagePackage: app
token: ${{ secrets.GITHUB_TOKEN }}
dockerbuildargs: |
- name: Use autodevops build and register
uses: SocialGouv/actions/autodevops-build-register@v1
with:
environment: preprod
imagePackage: app
token: ${{ secrets.GITHUB_TOKEN }}
dockerbuildargs: |
GITHUB_SHA=${{ env.GITHUB_SHA }}
deploy:
Expand All @@ -36,11 +36,11 @@ jobs:
name: preproduction
url: https://template-preprod.dev.fabrique.social.gouv.fr
steps:
- name: Use kube-workflow deployment
uses: SocialGouv/kube-workflow@v1
with:
environment: preprod
token: ${{ secrets.GITHUB_TOKEN }}
kubeconfig: ${{ secrets.KUBECONFIG }}
rancherProjectId: ${{ secrets.RANCHER_PROJECT_ID }}
rancherProjectName: ${{ secrets.RANCHER_PROJECT_NAME }}
- name: Use kube-workflow deployment
uses: SocialGouv/kube-workflow@v1
with:
environment: preprod
token: ${{ secrets.GITHUB_TOKEN }}
kubeconfig: ${{ secrets.KUBECONFIG }}
rancherProjectId: ${{ secrets.RANCHER_PROJECT_ID }}
rancherProjectName: ${{ secrets.RANCHER_PROJECT_NAME }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release
on:
workflow_dispatch:
push:
branches: [master, alpha, beta, next]
branches: [main, alpha, beta, next]

jobs:
release:
Expand Down
37 changes: 18 additions & 19 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Review
on:
push:
branches-ignore:
- master
- main
tags-ignore:
- v*

Expand All @@ -16,29 +16,28 @@ jobs:
name: Build & Register application
runs-on: ubuntu-latest
steps:
- name: Get commit sha
run: |
- name: Get commit sha
run: |
echo "GITHUB_SHA=${GITHUB_SHA}" >> $GITHUB_ENV
- name: Use autodevops build and register
uses: SocialGouv/actions/autodevops-build-register@v1
with:
environment: dev
imagePackage: app
token: ${{ secrets.GITHUB_TOKEN }}
dockerbuildargs: |
- name: Use autodevops build and register
uses: SocialGouv/actions/autodevops-build-register@v1
with:
environment: dev
imagePackage: app
token: ${{ secrets.GITHUB_TOKEN }}
dockerbuildargs: |
GITHUB_SHA=${{ env.GITHUB_SHA }}
deploy:
name: Deploy review branch
runs-on: ubuntu-latest
needs: [register]
steps:

- name: Use kube-workflow deployment
uses: SocialGouv/kube-workflow@v1
with:
environment: dev
token: ${{ secrets.GITHUB_TOKEN }}
kubeconfig: ${{ secrets.KUBECONFIG }}
rancherProjectId: ${{ secrets.RANCHER_PROJECT_ID }}
rancherProjectName: ${{ secrets.RANCHER_PROJECT_NAME }}
- name: Use kube-workflow deployment
uses: SocialGouv/kube-workflow@v1
with:
environment: dev
token: ${{ secrets.GITHUB_TOKEN }}
kubeconfig: ${{ secrets.KUBECONFIG }}
rancherProjectId: ${{ secrets.RANCHER_PROJECT_ID }}
rancherProjectName: ${{ secrets.RANCHER_PROJECT_NAME }}
2 changes: 1 addition & 1 deletion .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Storybook

on:
push:
branches: [master]
branches: [main]

concurrency:
cancel-in-progress: true
Expand Down
2 changes: 1 addition & 1 deletion src/components/footer/__tests__/bottom.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe("Footer - Bottom", () => {
render(
<Bottom
version={version}
commitHash="master"
commitHash="main"
repositoryUrl="https://github.com/SocialGouv/template"
links={[{ href: "/", title: "Yo" }]}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/config/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,5 +193,5 @@ export const footerBottomSection: FooterBottomSectionProps = {
],
version: process.env.NEXT_PUBLIC_APP_VERSION ?? "X.X.X",
repositoryUrl: process.env.NEXT_PUBLIC_APP_REPOSITORY_URL ?? "",
commitHash: process.env.NEXT_PUBLIC_APP_VERSION_COMMIT ?? "master",
commitHash: process.env.NEXT_PUBLIC_APP_VERSION_COMMIT ?? "main",
};

0 comments on commit 2f5e311

Please sign in to comment.