Skip to content

Commit 87d8670

Browse files
authored
build the tag (#927)
1 parent 249e326 commit 87d8670

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/ubuntu-packages-and-docker-image.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,21 @@ jobs:
2929
uses: buildjet/cache@v3
3030
with:
3131
path: pgml-extension/target
32-
key: buildjet-pgml-extension-artifacts-1 # Change this when dependencies change
32+
key: buildjet-pgml-extension-artifacts-1-${{ runner.arch }} # Change this when dependencies change
3333
- name: Cache pgrx
3434
uses: buildjet/cache@v3
3535
with:
3636
path: ~/.cargo
37-
key: buildjet-pgml-extension-pgrx-2 # Change this when dependencies change
37+
key: buildjet-pgml-extension-pgrx-2-${{ runner.arch }} # Change this when dependencies change
3838
- name: Install dependencies
3939
env:
4040
DEBIAN_FRONTEND: noninteractive
4141
TZ: Etc/UTC
4242
run: |
4343
git submodule update --init --recursive
44+
git fetch --tags
45+
git fetch --depth 1 origin tag v${{ inputs.packageVersion }}
46+
git checkout v${{ inputs.packageVersion }}
4447
4548
# PostgreSQL apt
4649
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null
@@ -138,6 +141,9 @@ jobs:
138141
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
139142
AWS_DEFAULT_REGION: ${{ vars.AWS_DEFAULT_REGION }}
140143
run: |
144+
# Always build using latest scripts
145+
git checkout master
146+
141147
bash packages/postgresql-pgml/release.sh ${{ inputs.packageVersion }}
142148
143149
#
@@ -159,7 +165,7 @@ jobs:
159165
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
160166
AWS_DEFAULT_REGION: ${{ vars.AWS_DEFAULT_REGION }}
161167
run: |
162-
bash packages/postgresml/release.sh ${{ inputs.packageVersion }}
168+
bash packages/postgresml/release.sh ${{ inputs.packageVersion }}
163169
164170
#
165171
# PostgresML dashboard.

0 commit comments

Comments
 (0)