diff --git a/.github/workflows/infrastructure.yml b/.github/workflows/infrastructure.yml index 3b53fdb..1435df0 100644 --- a/.github/workflows/infrastructure.yml +++ b/.github/workflows/infrastructure.yml @@ -11,8 +11,8 @@ on: jobs: - upsert-ecr-repository: - uses: ./.github/workflows/ecr-repository.yml + deploy-infrastructure: + uses: ./.github/workflows/upsert-infrastructure.yml secrets: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} diff --git a/.github/workflows/push-container.yml b/.github/workflows/push-container.yml index ad0ecc1..b5fbf97 100644 --- a/.github/workflows/push-container.yml +++ b/.github/workflows/push-container.yml @@ -28,8 +28,8 @@ jobs: npm ci npm run test - upsert-ecr-repository: - uses: ./.github/workflows/ecr-repository.yml + deploy-infrastructure: + uses: ./.github/workflows/upsert-infrastructure.yml secrets: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -37,7 +37,7 @@ jobs: push-image: runs-on: ubuntu-latest - needs: [unit-test, upsert-ecr-repository] + needs: [unit-test, deploy-infrastructure] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/ecr-repository.yml b/.github/workflows/upsert-infrastructure.yml similarity index 94% rename from .github/workflows/ecr-repository.yml rename to .github/workflows/upsert-infrastructure.yml index d224705..e2bff8b 100644 --- a/.github/workflows/ecr-repository.yml +++ b/.github/workflows/upsert-infrastructure.yml @@ -1,4 +1,4 @@ -name: Deploy ECR Repository +name: Deploy Infrastructure on: workflow_call: @@ -15,7 +15,7 @@ env: AWS_ROLE_TO_ASSUME: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/coderunner-pipeline-role jobs: - upsert-ecr-repository: + upsert-infrastructure: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4