Skip to content

Commit f5bf5f2

Browse files
committed
fix workflow: add latest
1 parent e21d753 commit f5bf5f2

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

.github/workflows/build-image-on-push.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ jobs:
112112
tags: |
113113
seatable/seatable-python-${{ needs.init-vars.outputs.component }}:commit-${{ steps.get_commit.outputs.short_sha }}
114114
seatable/seatable-python-${{ needs.init-vars.outputs.component }}:${{ needs.init-vars.outputs.image_tag_prefix }}${{ needs.init-vars.outputs.version }}
115+
${{ needs.init-vars.outputs.image_tag_prefix == '' && format('seatable/seatable-python-{0}:latest', needs.init-vars.outputs.component) || '' }}
115116
labels: |
116117
org.opencontainers.image.title=seatable/seatable-python-${{ needs.init-vars.outputs.component }}
117118
org.opencontainers.image.version=${{ needs.init-vars.outputs.image_tag_prefix }}${{ needs.init-vars.outputs.version }}
@@ -133,14 +134,3 @@ jobs:
133134
vuln-type: 'os,library'
134135
severity: 'CRITICAL,HIGH'
135136

136-
#- name: Push image
137-
# id: push_image
138-
# run: |
139-
# docker push seatable/seatable-python-${{ needs.init-vars.outputs.component }}:commit-${{ steps.get_commit.outputs.short_sha }}
140-
# docker push seatable/seatable-python-${{ needs.init-vars.outputs.component }}:${{ needs.init-vars.outputs.image_tag_prefix }}${{ needs.init-vars.outputs.version }}
141-
142-
- name: Push "latest" tag
143-
run: |
144-
docker tag seatable/seatable-python-${{ needs.init-vars.outputs.component }}:commit-${{ steps.get_commit.outputs.short_sha }} seatable/seatable-python-${{ needs.init-vars.outputs.component }}:latest
145-
docker push seatable/seatable-python-${{ needs.init-vars.outputs.component }}:latest
146-
if: ${{ needs.init-vars.outputs.image_tag_prefix == '' }}

0 commit comments

Comments
 (0)