Skip to content

increase retry to 12 times to be 2m total #25

increase retry to 12 times to be 2m total

increase retry to 12 times to be 2m total #25

Workflow file for this run

name: csharp state quickstart
on:
push:
branches:
- main
paths:
- .github/workflows/state_csharp.yaml
- state/csharp/**
pull_request:
branches:
- main
paths:
- .github/workflows/state_csharp.yaml
- state/csharp/**
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: "read"
id-token: "write"
environment: shared-production
if: github.repository_owner == 'diagridio'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x"
- name: build local
run: |
cd state/csharp
dotnet build
- name: Configure AWS credentials
if: github.event_name != 'pull_request'
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ vars.AWS_CI_ROLE }}
aws-region: ${{ vars.AWS_CI_REGION }}
- name: Login to Amazon ECR
if: github.event_name != 'pull_request'
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
with:
registry-type: public
- name: Set up Docker Buildx
if: github.event_name != 'pull_request'
uses: docker/setup-buildx-action@v3.6.1
- name: build and push order-app image
if: github.event_name != 'pull_request'
working-directory: state/csharp
run: |
docker buildx build --platform linux/amd64,linux/arm64 -t ${{ steps.login-ecr.outputs.registry }}/${{ vars.AWS_PUBLIC_ECR_ALIAS }}/state-csharp-qs . --push