building current docker image
This commit is contained in:
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@@ -157,15 +157,13 @@ jobs:
|
||||
--load \
|
||||
-t ${{ env.IMAGE_NAME }}:linux-${{ env.TAG }} .
|
||||
|
||||
- name: Save Docker image as artifact
|
||||
- name: Tag and Push Linux Docker image
|
||||
if: ${{ success() }}
|
||||
run: |
|
||||
docker save ${{ env.IMAGE_NAME }}:linux-${{ env.TAG }} -o linux-image.tar
|
||||
|
||||
- name: Upload Docker image artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: linux-docker-image
|
||||
path: linux-image.tar
|
||||
echo "Tagging Linux Docker image"
|
||||
docker tag ${{ env.IMAGE_NAME }}:linux-${{ env.TAG }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:linux-${{ env.TAG }}
|
||||
echo "Pushing Linux Docker image to registry: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:linux-${{ env.TAG }}"
|
||||
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:linux-${{ env.TAG }}
|
||||
|
||||
cleanup:
|
||||
name: Cleanup
|
||||
|
Reference in New Issue
Block a user