Skip to content

Commit

Permalink
Skip Pg17 build for DW stack
Browse files Browse the repository at this point in the history
  • Loading branch information
vrmiguel committed Dec 5, 2024
1 parent bb67e12 commit dd0236f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build_tembo_pg_slim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -269,17 +269,20 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Build Docker images based on conditions
if: ${{ matrix.pg_version != '17' }}
run: |
IMAGE_NAME=$CONTAINER_NAME:${{ matrix.pg_version }}
docker build ./$CONTAINER_NAME --build-arg PG_VERSION=${{ matrix.pg_version }} --build-arg TAG=${{ needs.pre-build.outputs.short_sha }} -t $IMAGE_NAME
shell: bash
- name: Login to Tembo Quay
if: ${{ matrix.pg_version != '17' }}
uses: docker/login-action@v2
with:
registry: ${{ secrets.QUAY_REPOSITORY }}
username: ${{ secrets.QUAY_USER_TEMBO }}
password: ${{ secrets.QUAY_PASSWORD_TEMBO }}
- name: Push to Quay
if: ${{ matrix.pg_version != '17' }}
shell: bash
run: |
set -xe
Expand All @@ -290,15 +293,18 @@ jobs:
docker push ${{ secrets.QUAY_REPOSITORY }}/$IMAGE_NAME-$tag
done
- name: Configure AWS credentials for ECR
if: ${{ matrix.pg_version != '17' }}
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.GHA_IAM_ROLE }}
role-session-name: images-gha-docker-build-and-push
aws-region: "us-east-1"
- name: Install awscli
if: ${{ matrix.pg_version != '17' }}
uses: unfor19/install-aws-cli-action@v1
- name: Push to ECR
shell: bash
if: ${{ matrix.pg_version != '17' }}
run: |
set -xe
IMAGE_NAME=$CONTAINER_NAME:${{ matrix.pg_version }}
Expand Down

0 comments on commit dd0236f

Please sign in to comment.