48
48
49
49
- uses : DeterminateSystems/nix-installer-action@main
50
50
51
- # TODO (darora): might need to temporarily disable this
52
51
- name : Run checks if triggered manually
53
52
if : ${{ github.event_name == 'workflow_dispatch' }}
54
53
run : |
@@ -90,12 +89,11 @@ jobs:
90
89
packer build -var "git_sha=$(UPSTREAM_NIX_GIT_SHA)" -var-file="common-nix.vars.pkr.hcl" qemu-arm64-nix.pkr.hcl
91
90
# 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
92
91
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
99
97
100
98
# - name: Create nix flake revision tarball
101
99
# run: |
@@ -106,11 +104,34 @@ jobs:
106
104
# echo "$GIT_SHA" >> "/tmp/pg_upgrade_bin/${MAJOR_VERSION}/nix_flake_version"
107
105
# tar -czf "/tmp/pg_binaries.tar.gz" -C "/tmp/pg_upgrade_bin" .
108
106
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
+
114
135
115
136
# - name: Upload software manifest to s3 staging
116
137
# run: |
0 commit comments