mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 04:32:55 +00:00
Refactor workflow.
This commit is contained in:
parent
59eb71b65a
commit
ba80d6cc85
9
.github/workflows/docker.yaml
vendored
9
.github/workflows/docker.yaml
vendored
@ -16,6 +16,7 @@ on:
|
|||||||
env:
|
env:
|
||||||
IMAGE_NAME: conky
|
IMAGE_NAME: conky
|
||||||
DOCKERHUB_ACCOUNT: brndnmtthws
|
DOCKERHUB_ACCOUNT: brndnmtthws
|
||||||
|
DOCKER_BUILDKIT: 1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
buildx:
|
buildx:
|
||||||
@ -46,4 +47,10 @@ jobs:
|
|||||||
# Use Docker `latest` tag convention
|
# Use Docker `latest` tag convention
|
||||||
[ "$VERSION" == "main" ] && VERSION=latest
|
[ "$VERSION" == "main" ] && VERSION=latest
|
||||||
|
|
||||||
docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 -t $DOCKERHUB_IMAGE_ID:$VERSION --cache-from=type=registry,ref=brndnmtthws/conky:buildcache --cache-to=type=registry,ref=brndnmtthws/conky:buildcache .
|
docker buildx build \
|
||||||
|
--push \
|
||||||
|
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
|
||||||
|
--cache-from=type=registry,ref=$DOCKERHUB_ACCOUNT/$IMAGE_NAME:buildcache \
|
||||||
|
--cache-to=type=registry,ref=$DOCKERHUB_ACCOUNT/$IMAGE_NAME:buildcache \
|
||||||
|
--tag $DOCKERHUB_IMAGE_ID:$VERSION \
|
||||||
|
.
|
||||||
|
Loading…
Reference in New Issue
Block a user