Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
whi-tw committed Feb 7, 2025
1 parent 60e4609 commit 3e6e813
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/mirror-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,16 @@ jobs:
docker tag "${{ matrix.image_name }}:${{ matrix.image_tag }}" "${ghcr_name}:latest"
version_tagged_image="${ghcr_name}:${{ matrix.image_tag }}"
docker tag "${{ matrix.image_name }}:${{ matrix.image_tag }}" "${ghcr_name}:${version_tagged_image}"
docker tag "${{ matrix.image_name }}:${{ matrix.image_tag }}" "${version_tagged_image}"
echo "ghcr_name=${ghcr_name}" >> "$GITHUB_OUTPUT"
echo "version_tagged_image=${version_tagged_image}" >> "$GITHUB_OUTPUT"
- name: Push image
- name: Push image with version tag
run: |
docker push "${{ steps.tag-image.outputs.ghcr_name }}:latest"
docker push "${{ steps.tag-image.outputs.version_tagged_image }}"
- name: Push latest
if: ( github.event_name == 'push' && github.ref == 'refs/heads/main' ) || github.event_name == 'schedule'
run: |
docker push "${{ steps.tag-image.outputs.ghcr_name }}:latest"

0 comments on commit 3e6e813

Please sign in to comment.