update workflow
This commit is contained in:
@@ -23,11 +23,13 @@ jobs:
|
|||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: Build and Push
|
||||||
run: |
|
uses: docker/build-push-action@v6
|
||||||
docker build -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest \
|
with:
|
||||||
-t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }} .
|
context: .
|
||||||
|
file: ./Dockerfile
|
||||||
- name: Push Docker image
|
platform: linux/amd64
|
||||||
run: |
|
push: true
|
||||||
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} --all-tags
|
tags:
|
||||||
|
- ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||||
|
- ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
|
||||||
|
|||||||
Reference in New Issue
Block a user