Skip to content

Commit

Permalink
! fixed docker version nulll issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lispking committed Jan 17, 2024
1 parent 0ca99c8 commit 89705f2
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/push-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ jobs:
name: Push
runs-on: ubuntu-latest
steps:
- name: Parse Event
id: event
run: |
echo "tag=$(jq -r '.release.tag_name' "${GITHUB_EVENT_PATH}" | sed s/^v//)" >> "$GITHUB_OUTPUT"
- name: Checkout
uses: actions/checkout@v3

Expand Down Expand Up @@ -62,9 +57,10 @@ jobs:
run: |
registry_uri="ghcr.io"
registry_repo="${{ github.repository }}"
version="${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}"
docker tag builder "${registry_uri}/${registry_repo}:latest"
docker tag builder "${registry_uri}/${registry_repo}:${{ steps.event.outputs.tag }}"
docker tag builder "${registry_uri}/${registry_repo}:${version}"
docker push "${registry_uri}/${registry_repo}:latest"
docker push "${registry_uri}/${registry_repo}:${{ steps.event.outputs.tag }}"
docker push "${registry_uri}/${registry_repo}:${version}"

0 comments on commit 89705f2

Please sign in to comment.