Skip to content

Commit

Permalink
Ceci est la combinaison de 9 commits.
Browse files Browse the repository at this point in the history
fix: envinronment secret

Revert "fix: envinronment secret"

This reverts commit 7010ec9.

fix: branch name
  • Loading branch information
Pascal-Delange committed Sep 8, 2023
1 parent d2cc82d commit ceb1dae
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/backoffice_deploy_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,32 @@ on:
inputs:
environment:
type: string
description: 'Github environment to use'
description: "Github environment to use"
required: true
secrets:
GCP_SA_KEY:
required: true
description: "GCP Service Account Key"

jobs:
build_backoffice:
name: Build BackOffice
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Install dependencies using yarn --frozen-lockfile
uses: bahmutov/npm-install@v1
uses: bahmutov/npm-install@v1
with:
working-directory: marble-backoffice
- name: 'Build ${{ inputs.environment }}'
run: 'yarn build-${{ inputs.environment }}'
working-directory: marble-backoffice
- name: "Build ${{ inputs.environment }}"
run: "yarn build-${{ inputs.environment }}"
working-directory: marble-backoffice
- name: Deploy to Firebase
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.GCP_SA_KEY }}'
projectId: '${{ inputs.environment }}'
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.GCP_SA_KEY }}"
projectId: "${{ inputs.environment }}"
channelId: live
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ jobs:
actions: read
uses: ./.github/workflows/backoffice_deploy_workflow.yaml
with:
environment: 'production'
environment: "production"
secrets:
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY_PRODUCTION }}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- master
- vivien/backoffice-ci

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -24,4 +23,6 @@ jobs:
actions: read
uses: ./.github/workflows/backoffice_deploy_workflow.yaml
with:
environment: 'staging'
environment: "staging"
secrets:
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY_STAGING }}

0 comments on commit ceb1dae

Please sign in to comment.