Skip to content

Commit

Permalink
Fix failing build
Browse files Browse the repository at this point in the history
Signed-off-by: peterdeme <[email protected]>
  • Loading branch information
peterdeme committed Feb 23, 2024
1 parent 5307bc3 commit 6c4a7fd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Deploy

on:
push:
branches:
- future
- main
branches: ["main", "future"]
pull_request:
branches: ["main", "future"]
schedule:
- cron: '20 8 * * 1'

Expand All @@ -31,6 +31,7 @@ jobs:

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/future' }}
with:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
Expand All @@ -47,6 +48,7 @@ jobs:

- name: Log in to GitHub registry
uses: docker/login-action@v3
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/future' }}
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down Expand Up @@ -80,6 +82,7 @@ jobs:

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/future' }}
with:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
Expand All @@ -90,6 +93,7 @@ jobs:
uses: unfor19/install-aws-cli-action@v1

- name: Login to Amazon ECR
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/future' }}
run: aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin ${REPOSITORY_PATH}
env:
REPOSITORY_PATH: ${{ secrets.PUBLIC_RUNNER_ANSIBLE_ECR_REPOSITORY_URL_AWS }}
Expand Down Expand Up @@ -123,6 +127,7 @@ jobs:

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/future' }}
with:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
Expand All @@ -133,6 +138,7 @@ jobs:
uses: unfor19/install-aws-cli-action@v1

- name: Login to Amazon ECR
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/future' }}
run: aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin ${REPOSITORY_PATH}
env:
REPOSITORY_PATH: ${{ secrets.PUBLIC_RUNNER_ANSIBLE_ECR_REPOSITORY_URL_GCP }}
Expand Down

0 comments on commit 6c4a7fd

Please sign in to comment.