File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ jobs:
22
22
- name : Get Release assets
23
23
env :
24
24
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25
- run : |-
25
+ run : |-
26
26
gh release download ${{ github.event.inputs.release }} --dir . --repo ${{ github.repository }}
27
27
28
28
- name : Release assets downloaded
29
- run : |-
29
+ run : |-
30
30
ls -la .
31
31
32
32
- name : Sanitize Version
91
91
- name : Push to registry
92
92
run : |-
93
93
REF="$CORE_REPO/$IMAGE_NAME:$VERSION"
94
+ LATEST_REF="$CORE_REPO/$IMAGE_NAME:latest"
94
95
oras push $REF \
95
96
--config config.json:application/vnd.turbot.steampipe.config.v1+json \
96
97
--annotation-file annotations.json \
@@ -100,3 +101,14 @@ jobs:
100
101
steampipe_postgres_fdw.so.linux_arm64.gz:application/vnd.turbot.steampipe.fdw.linux-arm64.layer.v1+gzip \
101
102
steampipe_postgres_fdw.control:application/vnd.turbot.steampipe.fdw.control.layer.v1+text \
102
103
steampipe_postgres_fdw--1.0.sql:application/vnd.turbot.steampipe.fdw.sql.layer.v1+text
104
+
105
+ # tag the image with the GitHub Run ID for traceability
106
+ oras tag $REF $GITHUB_RUN_ID
107
+
108
+ # check if the version is NOT an rc version before tagging as latest
109
+ if [[ $VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
110
+ echo "Tagging as latest: $LATEST_REF"
111
+ oras tag $REF $LATEST_REF
112
+ else
113
+ echo "Skipping latest tag for rc version: $VERSION"
114
+ fi
You can’t perform that action at this time.
0 commit comments