Skip to content

Commit

Permalink
Fix docker tag
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Jan 24, 2025
1 parent 8e1a4c4 commit 17b2ab8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish-trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:
username: ${{ secrets.QUAY_USER_TEMBO }}
password: ${{ secrets.QUAY_PASSWORD_TEMBO }}
- name: Push to Quay
if: github.ref_name == 'main'
# if: github.ref_name == 'main'
shell: bash
run: |
set -xe
TAG="$(perl -nE '/TRUNK_VER\s*=\s*(.+)/ && do { print $1; exit }' trunk/Dockerfile)"
docker tag $IMAGE_NAME ${{ secrets.QUAY_REPOSITORY }}/trunk:$TAG
docker push $IMAGE_NAME ${{ secrets.QUAY_REPOSITORY }}/trunk:$TAG
docker tag $IMAGE_NAME ${{ secrets.QUAY_REPOSITORY }}/trunk:latest
docker push $IMAGE_NAME ${{ secrets.QUAY_REPOSITORY }}/trunk:latest
docker tag trunk ${{ secrets.QUAY_REPOSITORY }}/trunk:$TAG
docker push ${{ secrets.QUAY_REPOSITORY }}/trunk:$TAG
docker tag trunk ${{ secrets.QUAY_REPOSITORY }}/trunk:latest
docker push ${{ secrets.QUAY_REPOSITORY }}/trunk:latest
1 change: 1 addition & 0 deletions trunk/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ RUN cargo install --version $TRUNK_VER pg-trunk

FROM scratch
COPY --from=build /usr/local/cargo/bin/trunk .

0 comments on commit 17b2ab8

Please sign in to comment.