mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 02:11:36 +00:00
fix docker builds (#402)
This commit is contained in:
parent
ea3d64607a
commit
da1043185a
@ -1,9 +1,8 @@
|
|||||||
name: Docker
|
name: Docker Latest
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 1.x
|
|
||||||
- 2.x
|
- 2.x
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -25,12 +24,11 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push to the latest tag
|
||||||
run: |
|
run: |
|
||||||
docker buildx build . \
|
docker buildx build . \
|
||||||
-f docker/Dockerfile \
|
-f docker/Dockerfile \
|
||||||
-t vitodeploy/vito:${{ github.head_ref || github.ref_name }} \
|
-t vitodeploy/vito:latest \
|
||||||
--build-arg="RELEASE=0" \
|
|
||||||
--platform linux/amd64,linux/arm64 \
|
--platform linux/amd64,linux/arm64 \
|
||||||
--no-cache \
|
--no-cache \
|
||||||
--push
|
--push
|
15
.github/workflows/docker-release.yml
vendored
15
.github/workflows/docker-release.yml
vendored
@ -28,17 +28,24 @@ jobs:
|
|||||||
docker buildx build . \
|
docker buildx build . \
|
||||||
-f docker/Dockerfile \
|
-f docker/Dockerfile \
|
||||||
-t vitodeploy/vito:${{ github.event.release.tag_name }} \
|
-t vitodeploy/vito:${{ github.event.release.tag_name }} \
|
||||||
--build-arg="RELEASE=0" \
|
|
||||||
--platform linux/amd64,linux/arm64 \
|
--platform linux/amd64,linux/arm64 \
|
||||||
--no-cache \
|
--no-cache \
|
||||||
--push
|
--push
|
||||||
|
|
||||||
- name: Build and push to the latest tag
|
- name: Build and push to the 1.x tag
|
||||||
|
if: startsWith(github.event.release.target_commitish, '1.x')
|
||||||
|
run: |
|
||||||
|
docker buildx build . \
|
||||||
|
-f docker/Dockerfile \
|
||||||
|
-t vitodeploy/vito:1.x \
|
||||||
|
--platform linux/amd64,linux/arm64 \
|
||||||
|
--push
|
||||||
|
|
||||||
|
- name: Build and push to the 2.x tag
|
||||||
if: startsWith(github.event.release.target_commitish, '2.x')
|
if: startsWith(github.event.release.target_commitish, '2.x')
|
||||||
run: |
|
run: |
|
||||||
docker buildx build . \
|
docker buildx build . \
|
||||||
-f docker/Dockerfile \
|
-f docker/Dockerfile \
|
||||||
-t vitodeploy/vito:latest \
|
-t vitodeploy/vito:2.x \
|
||||||
--build-arg="RELEASE=0" \
|
|
||||||
--platform linux/amd64,linux/arm64 \
|
--platform linux/amd64,linux/arm64 \
|
||||||
--push
|
--push
|
||||||
|
Loading…
x
Reference in New Issue
Block a user