mirror of
https://gitee.com/mirrors_adrian-thurston/yq.git
synced 2026-01-14 23:43:38 +08:00
automated docker releases!
This commit is contained in:
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
@@ -1,6 +1,5 @@
|
||||
name: Publish image to Dockerhub
|
||||
on:
|
||||
push: # temporary
|
||||
release:
|
||||
types: [released]
|
||||
|
||||
@@ -44,6 +43,6 @@ jobs:
|
||||
PLATFORMS="linux/amd64,linux/ppc64le,linux/arm64"
|
||||
echo "Building and pushing version ${IMAGE_VERSION} of image ${IMAGE_NAME}"
|
||||
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
||||
docker buildx build --platform "${PLATFORMS}" -t "${IMAGE_NAME}:${IMAGE_VERSION}-buildx" -t "${IMAGE_NAME}:buildx" \
|
||||
docker buildx build --platform "${PLATFORMS}" -t "${IMAGE_NAME}:${IMAGE_VERSION}" -t "${IMAGE_NAME}:latest" -t "${IMAGE_NAME}:4" \
|
||||
--push .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user