init docker buildx arm64 & amd64 build
This commit is contained in:
1 parent
8217cf9985
commit
c504c64d0a
1 file changed
+7
-1
@@ -28,7 +28,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
REPOSITORY_LC=$(echo "${{ gitea.repository }}" | tr '[:upper:]' '[:lower:]')
|
REPOSITORY_LC=$(echo "${{ gitea.repository }}" | tr '[:upper:]' '[:lower:]')
|
||||||
# Build the image with the commit hash tag
|
# Build the image with the commit hash tag
|
||||||
docker build -t eiche:3000/${REPOSITORY_LC}:${GITHUB_RUN_NUMBER} .
|
|
||||||
|
export DOCKER_CLI_EXPERIMENTAL=enabled;
|
||||||
|
docker buildx create --name boxitapache || true 2>/dev/null;
|
||||||
|
docker buildx use boxitapache;
|
||||||
|
docker buildx build \
|
||||||
|
--platform linux/arm64,linux/amd64 \
|
||||||
|
--tag eiche:3000/${REPOSITORY_LC}:${GITHUB_RUN_NUMBER} .
|
||||||
|
|
||||||
# Tag the same image as "latest"
|
# Tag the same image as "latest"
|
||||||
docker tag eiche:3000/${REPOSITORY_LC}:${GITHUB_RUN_NUMBER} eiche:3000/${REPOSITORY_LC}:latest
|
docker tag eiche:3000/${REPOSITORY_LC}:${GITHUB_RUN_NUMBER} eiche:3000/${REPOSITORY_LC}:latest
|
||||||
|
|||||||