Skip to content

Commit 100b5e2

Browse files
authored
feat: upgrade gh_workflow versino to v3 (#3398)
* feat: upgrade gh_workflow versino to v3 * fix: need to install 1P cli before in sync_to_s3_generic_push_* * feat: adding --ignore-scripts when installing for embed-popup and app in workflows
1 parent b1d94f8 commit 100b5e2

15 files changed

+27
-21
lines changed

.github/workflows/build_and_deploy_generic.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
run: echo "AWS_SESSION_TOKEN=$(op read op://DeployerVault/github-aws-production/ci/AWS_SESSION_TOKEN)" >> $GITHUB_ENV
4646

4747
- id: build_and_push_docker_iam_image
48-
uses: passportxyz/gh-workflows/.github/actions/build_and_push@v2
48+
uses: passportxyz/gh-workflows/.github/actions/build_and_push@v3
4949
with:
5050
refspec: ${{ inputs.refspec }}
5151
docker_tag: ${{ inputs.docker_tag }}
@@ -85,7 +85,7 @@ jobs:
8585
run: echo "AWS_SESSION_TOKEN=$(op read op://DeployerVault/github-aws-production/ci/AWS_SESSION_TOKEN)" >> $GITHUB_ENV
8686

8787
- id: build_and_push_docker_embed_image
88-
uses: passportxyz/gh-workflows/.github/actions/build_and_push@v2
88+
uses: passportxyz/gh-workflows/.github/actions/build_and_push@v3
8989
with:
9090
refspec: ${{ inputs.refspec }}
9191
docker_tag: ${{ inputs.docker_tag }}
@@ -128,10 +128,10 @@ jobs:
128128
run: echo "AWS_SESSION_TOKEN=$(op read op://DeployerVault/github-aws-production/ci/AWS_SESSION_TOKEN)" >> $GITHUB_ENV
129129

130130
- name: Prepare to Deploy to AWS
131-
uses: passportxyz/gh-workflows/.github/actions/prepare_deploy_to_aws@v1
131+
uses: passportxyz/gh-workflows/.github/actions/prepare_deploy_to_aws@v3
132132
- name: Deploy Preview
133133
# uses: ./.github/actions/deploy_to_aws
134-
uses: passportxyz/gh-workflows/.github/actions/deploy_to_aws@v1
134+
uses: passportxyz/gh-workflows/.github/actions/deploy_to_aws@v3
135135
with:
136136
docker_tag: ${{ inputs.docker_tag }}
137137
stack_name: passportxyz/passport/${{ inputs.environment }}
@@ -202,9 +202,9 @@ jobs:
202202
run: echo "AWS_SESSION_TOKEN=$(op read op://DeployerVault/github-aws-production/ci/AWS_SESSION_TOKEN)" >> $GITHUB_ENV
203203

204204
- name: Prepare to Deploy to AWS
205-
uses: passportxyz/gh-workflows/.github/actions/prepare_deploy_to_aws@v1
205+
uses: passportxyz/gh-workflows/.github/actions/prepare_deploy_to_aws@v3
206206
- name: Deploy to AWS
207-
uses: passportxyz/gh-workflows/.github/actions/deploy_to_aws@v1
207+
uses: passportxyz/gh-workflows/.github/actions/deploy_to_aws@v3
208208
with:
209209
docker_tag: ${{ inputs.docker_tag }}
210210
stack_name: passportxyz/passport/${{ inputs.environment }}

.github/workflows/build_and_deploy_production.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- id: ref
16-
uses: passportxyz/gh-workflows/.github/actions/load_commit_ref@v1
16+
uses: passportxyz/gh-workflows/.github/actions/load_commit_ref@v3
1717
with:
1818
commit: ${{ inputs.commit }}
1919

.github/workflows/build_and_deploy_review.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- id: ref
18-
uses: passportxyz/gh-workflows/.github/actions/load_commit_ref@v1
18+
uses: passportxyz/gh-workflows/.github/actions/load_commit_ref@v3
1919
with:
2020
commit: ${{ inputs.commit }}
2121

.github/workflows/build_and_deploy_staging.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- id: ref
16-
uses: passportxyz/gh-workflows/.github/actions/load_commit_ref@v1
16+
uses: passportxyz/gh-workflows/.github/actions/load_commit_ref@v3
1717
with:
1818
commit: ${{ inputs.commit }}
1919

.github/workflows/deploy_app_generic.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
runs-on: ubuntu-latest
2626
steps:
2727
- id: ref
28-
uses: passportxyz/gh-workflows/.github/actions/load_commit_ref@v1
28+
uses: passportxyz/gh-workflows/.github/actions/load_commit_ref@v3
2929
with:
3030
commit: ${{ inputs.commit }}
3131

.github/workflows/deploy_embed_generic.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
runs-on: ubuntu-latest
2626
steps:
2727
- id: ref
28-
uses: passportxyz/gh-workflows/.github/actions/load_commit_ref@v1
28+
uses: passportxyz/gh-workflows/.github/actions/load_commit_ref@v3
2929
with:
3030
commit: ${{ inputs.commit }}
3131

.github/workflows/deploy_generic.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ jobs:
102102
run: echo "AWS_SESSION_TOKEN=$(op read op://DeployerVault/github-aws-production/ci/AWS_SESSION_TOKEN)" >> $GITHUB_ENV
103103

104104
- name: Prepare to Deploy to AWS
105-
uses: passportxyz/gh-workflows/.github/actions/prepare_deploy_to_aws@v1
105+
uses: passportxyz/gh-workflows/.github/actions/prepare_deploy_to_aws@v3
106106
- name: Preview Deploy
107-
uses: passportxyz/gh-workflows/.github/actions/deploy_to_aws@v1
107+
uses: passportxyz/gh-workflows/.github/actions/deploy_to_aws@v3
108108
with:
109109
docker_tag: ${{ inputs.docker_tag }}
110110
stack_name: passportxyz/passport/${{ inputs.environment }}
@@ -159,9 +159,9 @@ jobs:
159159
run: echo "AWS_SESSION_TOKEN=$(op read op://DeployerVault/github-aws-production/ci/AWS_SESSION_TOKEN)" >> $GITHUB_ENV
160160

161161
- name: Prepare to Deploy to AWS
162-
uses: passportxyz/gh-workflows/.github/actions/prepare_deploy_to_aws@v1
162+
uses: passportxyz/gh-workflows/.github/actions/prepare_deploy_to_aws@v3
163163
- name: Deploy to AWS
164-
uses: passportxyz/gh-workflows/.github/actions/deploy_to_aws@v1
164+
uses: passportxyz/gh-workflows/.github/actions/deploy_to_aws@v3
165165
with:
166166
docker_tag: ${{ inputs.docker_tag }}
167167
stack_name: passportxyz/passport/${{ inputs.environment }}

.github/workflows/deploy_production.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- id: ref
15-
uses: passportxyz/gh-workflows/.github/actions/load_commit_ref@v1
15+
uses: passportxyz/gh-workflows/.github/actions/load_commit_ref@v3
1616
with:
1717
commit: ${{ inputs.commit }}
1818

.github/workflows/deploy_review.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- id: ref
16-
uses: passportxyz/gh-workflows/.github/actions/load_commit_ref@v1
16+
uses: passportxyz/gh-workflows/.github/actions/load_commit_ref@v3
1717
with:
1818
commit: ${{ inputs.commit }}
1919

.github/workflows/deploy_staging.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- id: ref
15-
uses: passportxyz/gh-workflows/.github/actions/load_commit_ref@v1
15+
uses: passportxyz/gh-workflows/.github/actions/load_commit_ref@v3
1616
with:
1717
commit: ${{ inputs.commit }}
1818

.github/workflows/release_and_deploy_production.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- id: ref
17-
uses: passportxyz/gh-workflows/.github/actions/load_commit_ref@v1
17+
uses: passportxyz/gh-workflows/.github/actions/load_commit_ref@v3
1818
with:
1919
commit: ${{ inputs.commit }}
2020

.github/workflows/sync_to_s3_generic_build_app.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
5252
- name: Install Dependencies
5353
working-directory: .
54-
run: yarn install --frozen-lockfile
54+
run: yarn install --frozen-lockfile --ignore-scripts
5555

5656
- name: Build Application
5757
working-directory: .

.github/workflows/sync_to_s3_generic_build_embed.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
6060
- name: Install Dependencies
6161
working-directory: .
62-
run: yarn install --frozen-lockfile
62+
run: yarn install --frozen-lockfile --ignore-scripts
6363

6464
- name: Build Application
6565
working-directory: .

.github/workflows/sync_to_s3_generic_push_app.yml

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
name: passport-app-${{ inputs.environment }}
2929
path: app/out
3030

31+
- name: Install 1Password CLI
32+
uses: 1password/install-cli-action@v1
33+
3134
- name: Load secret
3235
id: op-load-secret
3336
uses: 1password/load-secrets-action@v1

.github/workflows/sync_to_s3_generic_push_embed.yml

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
name: passport-embed-popup-${{ inputs.environment }}
2929
path: embed-popup/dist
3030

31+
- name: Install 1Password CLI
32+
uses: 1password/install-cli-action@v1
33+
3134
- name: Load secret
3235
id: op-load-secret
3336
uses: 1password/load-secrets-action@v1

0 commit comments

Comments
 (0)