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

Commit

Permalink
fix: Update pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-van-woerkens committed Oct 13, 2021
1 parent d543c51 commit e9b37f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- v*

concurrency:
group: preproduction
group: production
cancel-in-progress: true

jobs:
Expand All @@ -22,14 +22,14 @@ jobs:
echo "project=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
- name: Application
uses: SocialGouv/actions/harbor-build-register@master
uses: SocialGouv/actions/autodevops-build-register@v1
with:
imageName: ${{ env.project }}/app
harborUsername: ${{ secrets.HARBOR_USERNAME }}
harborPassword: ${{ secrets.HARBOR_PASSWORD }}

- name: Hasura
uses: SocialGouv/actions/harbor-build-register@master
uses: SocialGouv/actions/autodevops-build-register@v1
with:
imageName: ${{ env.project }}/hasura
dockercontext: ./hasura
Expand Down Expand Up @@ -81,12 +81,14 @@ jobs:
name: production
url: https://sample-next-app.fabrique.social.gouv.fr
steps:

- name: Use k8s manifests generation
uses: SocialGouv/actions/k8s-manifests@v1
with:
environment: "prod"
rancherId: ${{ secrets.RANCHER_PROJECT_ID }}
socialgouvBaseDomain: ${{ secrets.SOCIALGOUV_BASE_DOMAIN }}

- name: Use autodevops deployment
uses: SocialGouv/actions/autodevops-deploy@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ jobs:
echo "project=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
- name: Application
uses: SocialGouv/actions/harbor-build-register@master
uses: SocialGouv/actions/autodevops-build-register@v1
with:
imageName: ${{ env.project }}/app
harborUsername: ${{ secrets.HARBOR_USERNAME }}
harborPassword: ${{ secrets.HARBOR_PASSWORD }}

- name: Hasura
uses: SocialGouv/actions/harbor-build-register@master
uses: SocialGouv/actions/autodevops-build-register@v1
with:
imageName: ${{ env.project }}/hasura
dockercontext: ./hasura
Expand Down

0 comments on commit e9b37f8

Please sign in to comment.