Skip to content

Commit

Permalink
fix(emergency): increase retry and timeout. Pray for this 🙏
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasbriere1 committed Dec 16, 2024
1 parent 4d89a00 commit c546fb9
Show file tree
Hide file tree
Showing 11 changed files with 65 additions and 68 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'BuildImage'
name: "BuildImage"

on:
workflow_call:
Expand Down Expand Up @@ -51,14 +51,13 @@ on:
image-version:
value: ${{ jobs.build-image.outputs.image-version }}


jobs:
build-image:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: write
contents: read
id-token: write
packages: write
environment:
name: ${{ inputs.environment_name }}
env:
Expand Down Expand Up @@ -88,8 +87,8 @@ jobs:
id: secrets
with:
action: hashicorp/vault-action@v3
attempt_limit: 5
attempt_delay: 150
attempt_limit: 15
attempt_delay: 500
with: |
url: ${{ env.VAULT_URL }}
role: ${{ env.VAULT_GITHUB_ACTIONS_ROLE }}
Expand Down Expand Up @@ -133,7 +132,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build
uses: docker/build-push-action@v6
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/create-apk-artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ jobs:
id: secrets
with:
action: hashicorp/vault-action@v3
attempt_limit: 5
attempt_delay: 150
attempt_limit: 15
attempt_delay: 500
with: |
url: ${{ env.VAULT_URL }}
role: ${{ env.VAULT_GITHUB_ACTIONS_ROLE }}
Expand Down Expand Up @@ -163,7 +163,7 @@ jobs:
node-version: ${{ inputs.node-version }}
registry-url: "https://npm.pkg.github.com"
scope: "@ZeroGachis"
cache: 'npm'
cache: "npm"

- name: Get Smartway APK keystore
if: ${{steps.get-existing-apk.outputs.need-new-apk == 'true'}} or ${{ inputs.environment == 'pullrequest' }}
Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:
regex: '<string moduleConfig="true" name="CodePushServerUrl">(.*)</string>'
replacement: '<string moduleConfig="true" name="CodePushServerUrl">${{ steps.vault.outputs.CODE_PUSH_SERVER_URL }}</string>'
include: "^android/app/src/main/res/values/strings.xml"

- name: Set code push key in string.xml
if: ${{ inputs.environment != 'pullrequest' }}
uses: mingjun97/file-regex-replace@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dotnet-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ jobs:
id: secrets
with:
action: hashicorp/vault-action@v3
attempt_limit: 5
attempt_delay: 150
attempt_limit: 15
attempt_delay: 500
with: |
url: ${{ env.VAULT_URL }}
role: ${{ env.VAULT_GITHUB_ACTIONS_ROLE }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-apk-s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ jobs:
id: secrets
with:
action: hashicorp/vault-action@v3
attempt_limit: 5
attempt_delay: 150
attempt_limit: 15
attempt_delay: 500
with: |
url: ${{ env.VAULT_URL }}
role: ${{ env.VAULT_GITHUB_ACTIONS_ROLE }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-bundle-codepush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ jobs:
id: secrets
with:
action: hashicorp/vault-action@v3
attempt_limit: 5
attempt_delay: 150
attempt_limit: 15
attempt_delay: 500
with: |
url: ${{ env.VAULT_URL }}
role: ${{ env.VAULT_GITHUB_ACTIONS_ROLE }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/run-aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ on:
jobs:
run-aws:
permissions:
contents: read
id-token: write
packages: read
contents: read
id-token: write
packages: read
runs-on: ubuntu-latest
environment:
name: ${{ inputs.environment_name }}
Expand Down Expand Up @@ -71,8 +71,8 @@ jobs:
id: secrets
with:
action: hashicorp/vault-action@v3
attempt_limit: 5
attempt_delay: 150
attempt_limit: 15
attempt_delay: 500
with: |
url: ${{ env.VAULT_URL }}
role: ${{ env.VAULT_GITHUB_ACTIONS_ROLE }}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/run-docker-upload-artifact.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Run-Docker-Command-Upload-Artifact'
name: "Run-Docker-Command-Upload-Artifact"

on:
workflow_call:
Expand Down Expand Up @@ -64,11 +64,11 @@ jobs:
run-docker:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: read
actions: write
checks: write
contents: read
id-token: write
packages: read
actions: write
checks: write
environment:
name: ${{ inputs.environment_name }}
container:
Expand Down Expand Up @@ -98,8 +98,8 @@ jobs:
id: secrets
with:
action: hashicorp/vault-action@v3
attempt_limit: 5
attempt_delay: 150
attempt_limit: 15
attempt_delay: 500
with: |
url: ${{ env.VAULT_URL }}
role: ${{ env.VAULT_GITHUB_ACTIONS_ROLE }}
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/run-docker-with-db.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Run-Docker-Command'
name: "Run-Docker-Command"

on:
workflow_call:
Expand Down Expand Up @@ -68,11 +68,11 @@ jobs:
run-docker:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: read
actions: write
checks: write
contents: read
id-token: write
packages: read
actions: write
checks: write
environment:
name: ${{ inputs.environment_name }}
container:
Expand All @@ -93,7 +93,7 @@ jobs:
env:
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
- 5432:5432

steps:
- name: Tailscale
Expand All @@ -111,8 +111,8 @@ jobs:
id: secrets
with:
action: hashicorp/vault-action@v3
attempt_limit: 5
attempt_delay: 150
attempt_limit: 15
attempt_delay: 500
with: |
url: ${{ env.VAULT_URL }}
role: ${{ env.VAULT_GITHUB_ACTIONS_ROLE }}
Expand Down Expand Up @@ -145,9 +145,9 @@ jobs:
id: test-report
if: ${{ always() && inputs.enable_test_report == true }}
with:
name: '${{ inputs.test_report_name }}'
name: "${{ inputs.test_report_name }}"
path: ${{ inputs.workdir }}/${{ inputs.test_report_path }}
working-directory: ${{ inputs.workdir }}
reporter: ${{ inputs.test_report_format }}
max-annotations: 0
list-tests: 'failed'
list-tests: "failed"
26 changes: 12 additions & 14 deletions .github/workflows/run-docker.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Run-Docker-Command'
name: "Run-Docker-Command"

on:
workflow_call:
Expand Down Expand Up @@ -40,8 +40,8 @@ on:
required: false
type: string
aws_region:
required: false
type: string
required: false
type: string
aws_github_role_name:
required: false
type: string
Expand All @@ -68,11 +68,11 @@ jobs:
run-docker:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: read
actions: write
checks: write
contents: read
id-token: write
packages: read
actions: write
checks: write
environment:
name: ${{ inputs.environment_name }}
container:
Expand Down Expand Up @@ -103,8 +103,8 @@ jobs:
id: secrets
with:
action: hashicorp/vault-action@v3
attempt_limit: 5
attempt_delay: 150
attempt_limit: 15
attempt_delay: 500
with: |
url: ${{ env.VAULT_URL }}
role: ${{ env.VAULT_GITHUB_ACTIONS_ROLE }}
Expand All @@ -125,7 +125,6 @@ jobs:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: arn:aws:iam::${{ env.AWS_ACCOUNT_ID }}:role/${{ inputs.aws_github_role_name }}


- name: run-command
working-directory: ${{ inputs.workdir }}
run: ${{ inputs.run_command }}
Expand All @@ -135,10 +134,9 @@ jobs:
id: test-report
if: ${{ always() && inputs.enable_test_report == true }}
with:
name: '${{ inputs.test_report_name }}'
name: "${{ inputs.test_report_name }}"
path: ${{ inputs.workdir }}/${{ inputs.test_report_path }}
reporter: ${{ inputs.test_report_format }}
working-directory: ${{ inputs.workdir }}
max-annotations: 0
list-tests: 'failed'

list-tests: "failed"
20 changes: 10 additions & 10 deletions .github/workflows/run-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ on:
required: false
type: string
aws_region:
required: false
type: string
required: false
type: string
aws_github_role_name:
required: false
type: string
Expand All @@ -63,10 +63,10 @@ jobs:
run-python:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: read
checks: write
contents: read
id-token: write
packages: read
checks: write
environment:
name: ${{ inputs.environment_name }}
env:
Expand All @@ -91,8 +91,8 @@ jobs:
id: secrets
with:
action: hashicorp/vault-action@v3
attempt_limit: 5
attempt_delay: 150
attempt_limit: 15
attempt_delay: 500
with: |
url: ${{ env.VAULT_URL }}
role: ${{ env.VAULT_GITHUB_ACTIONS_ROLE }}
Expand Down Expand Up @@ -124,8 +124,8 @@ jobs:
id: test-report
if: ${{ always() && inputs.enable_test_report == true }}
with:
name: '${{ inputs.test_report_name }}'
name: "${{ inputs.test_report_name }}"
path: ${{ inputs.test_report_path }}
reporter: ${{ inputs.test_report_format }}
max-annotations: 0
list-tests: 'failed'
list-tests: "failed"
4 changes: 2 additions & 2 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ jobs:
id: secrets
with:
action: hashicorp/vault-action@v3
attempt_limit: 5
attempt_delay: 150
attempt_limit: 15
attempt_delay: 500
with: |
url: ${{ env.VAULT_URL }}
role: ${{ env.VAULT_GITHUB_ACTIONS_ROLE }}
Expand Down

0 comments on commit c546fb9

Please sign in to comment.