github actions

This commit is contained in:
Saeed Vaziry
2024-10-13 19:23:21 +02:00
parent 321465d3e2
commit 54dc6cfb9a
4 changed files with 90 additions and 37 deletions

View File

@ -2,7 +2,7 @@ name: Build and push Docker image
on:
release:
types: [created]
types: [ created ]
jobs:
build-and-push:
@ -28,8 +28,17 @@ jobs:
docker buildx build . \
-f docker/Dockerfile \
-t vitodeploy/vito:${{ github.event.release.tag_name }} \
-t vitodeploy/vito:latest \
--build-arg="RELEASE=0" \
--platform linux/amd64,linux/arm64 \
--no-cache \
--push
- name: Build and push latest tag
if: startsWith(github.event.release.target_commitish, '1.x')
run: |
docker buildx build . \
-f docker/Dockerfile \
-t vitodeploy/vito:latest \
--build-arg="RELEASE=0" \
--platform linux/amd64,linux/arm64 \
--push