Skip to content

Commit

Permalink
Update rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CA-MKSingh authored Oct 6, 2024
1 parent 758aa0c commit 5acb5a7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ jobs:
if: runner.os == 'Linux'
run: |
docker buildx build --platform linux/${{ matrix.arch }} \
-t "${{ env.IMAGE_NAME }}:linux_${{ matrix.arch }}:${{ github.ref_name }}" .
-t "${{ env.IMAGE_NAME }}:linux-${{ matrix.arch }}-${{ github.ref_name }}" .
- name: Push Docker image to DockerHub (Linux only)
if: runner.os == 'Linux'
run: |
docker tag "${{ env.IMAGE_NAME }}:linux_${{ matrix.arch }}:${{ github.ref_name }}" \
"${{ env.IMAGE_NAME }}:linux_${{ matrix.arch }}:latest"
docker push "${{ env.IMAGE_NAME }}:linux_${{ matrix.arch }}:${{ github.ref_name }}"
docker push "${{ env.IMAGE_NAME }}:linux_${{ matrix.arch }}:latest"
docker tag "${{ env.IMAGE_NAME }}:linux-${{ matrix.arch }}-${{ github.ref_name }}" \
"${{ env.IMAGE_NAME }}:linux-${{ matrix.arch }}-latest"
docker push "${{ env.IMAGE_NAME }}:linux-${{ matrix.arch }}-${{ github.ref_name }}"
docker push "${{ env.IMAGE_NAME }}:linux-${{ matrix.arch }}-latest"

0 comments on commit 5acb5a7

Please sign in to comment.