Skip to content

Commit add5d2b

Browse files
committed
try publishing
1 parent dc080fc commit add5d2b

File tree

1 file changed

+33
-12
lines changed

1 file changed

+33
-12
lines changed

.github/workflows/qemu-image-build.yml

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ jobs:
4848

4949
- uses: DeterminateSystems/nix-installer-action@main
5050

51-
# TODO (darora): might need to temporarily disable this
5251
- name: Run checks if triggered manually
5352
if: ${{ github.event_name == 'workflow_dispatch' }}
5453
run: |
@@ -90,12 +89,11 @@ jobs:
9089
packer build -var "git_sha=$(UPSTREAM_NIX_GIT_SHA)" -var-file="common-nix.vars.pkr.hcl" qemu-arm64-nix.pkr.hcl
9190
# packer build -var "git-head-version=${GIT_SHA}" -var "packer-execution-id=${GITHUB_RUN_ID}" -var-file="development-arm.vars.pkr.hcl" -var-file="common-nix.vars.pkr.hcl" -var "ansible_arguments=-e postgresql_major=${POSTGRES_MAJOR_VERSION}" amazon-arm64-nix.pkr.hcl
9291
93-
# TODO (darora): publishing things is temporarily disabled
94-
# - name: Grab release version
95-
# id: process_release_version
96-
# run: |
97-
# VERSION=$(cat common-nix.vars.pkr.hcl | sed -e 's/postgres-version = "\(.*\)"/\1/g')
98-
# echo "version=$VERSION" >> $GITHUB_OUTPUT
92+
- name: Grab release version
93+
id: process_release_version
94+
run: |
95+
VERSION=$(cat common-nix.vars.pkr.hcl | sed -e 's/postgres-version = "\(.*\)"/\1/g')
96+
echo "version=$VERSION" >> $GITHUB_OUTPUT
9997
10098
# - name: Create nix flake revision tarball
10199
# run: |
@@ -106,11 +104,34 @@ jobs:
106104
# echo "$GIT_SHA" >> "/tmp/pg_upgrade_bin/${MAJOR_VERSION}/nix_flake_version"
107105
# tar -czf "/tmp/pg_binaries.tar.gz" -C "/tmp/pg_upgrade_bin" .
108106

109-
# - name: configure aws credentials - staging
110-
# uses: aws-actions/configure-aws-credentials@v4
111-
# with:
112-
# role-to-assume: ${{ secrets.DEV_AWS_ROLE }}
113-
# aws-region: "us-east-1"
107+
- name: configure aws credentials - staging
108+
uses: aws-actions/configure-aws-credentials@v4
109+
with:
110+
role-to-assume: ${{ secrets.DEV_AWS_ROLE }}
111+
aws-region: "us-east-1"
112+
113+
- run: docker context create builders
114+
115+
- uses: docker/setup-buildx-action@v3
116+
with:
117+
endpoint: builders
118+
119+
- name: Login to ECR
120+
uses: docker/login-action@v2
121+
with:
122+
registry: public.ecr.aws
123+
124+
- id: build
125+
uses: docker/build-push-action@v5
126+
with:
127+
file: Dockerfile-kubernetes
128+
push: true
129+
target: production
130+
tags: ${{ steps.process_release_version.outputs.version }}
131+
platforms: linux/arm64
132+
cache-from: type=gha,scope=${{ github.ref_name }}-qemu-${{ matrix.arch }}
133+
cache-to: type=gha,mode=max,scope=${{ github.ref_name }}-qemu-${{ matrix.arch }}
134+
114135

115136
# - name: Upload software manifest to s3 staging
116137
# run: |

0 commit comments

Comments
 (0)