Skip to content

Commit eb13236

Browse files
ci: push both arm and amd images in ghcr
1 parent 97739ab commit eb13236

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
name: Build and Push Docker Image
2-
env:
3-
DOCKER_BUILDKIT: 1
4-
COMPOSE_DOCKER_CLI_BUILD: 1
52
on:
63
push:
74
branches:
@@ -56,12 +53,13 @@ jobs:
5653
run: |
5754
REPO_NAME="${GITHUB_REPOSITORY,,}"
5855
IMAGE_TAG="${{ steps.set-tag.outputs.IMAGE_TAG }}"
59-
# Build and tag with version
60-
docker build -t ghcr.io/${REPO_NAME}:${IMAGE_TAG} .
61-
docker push ghcr.io/${REPO_NAME}:${IMAGE_TAG}
62-
# Also tag as latest
63-
docker tag ghcr.io/${REPO_NAME}:${IMAGE_TAG} ghcr.io/${REPO_NAME}:latest
64-
docker push ghcr.io/${REPO_NAME}:latest
56+
57+
docker buildx build \
58+
--platform linux/amd64,linux/arm64 \
59+
-t ghcr.io/${REPO_NAME}:${IMAGE_TAG} \
60+
-t ghcr.io/${REPO_NAME}:latest \
61+
--push \
62+
.
6563
- name: Create and Push Git Tag
6664
run: |
6765
VERSION="${{ steps.get-version.outputs.VERSION }}"

app/core/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.3.4"
1+
__version__ = "1.3.5"

0 commit comments

Comments
 (0)