From f059e13f94092c3441212f5a2ee696d204f78050 Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Tue, 22 Dec 2020 16:16:31 +1100 Subject: [PATCH] automated docker releases! --- .github/workflows/release.yml | 3 +-- scripts/publish-docker.sh | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b02ca179..0edfcd18 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 . diff --git a/scripts/publish-docker.sh b/scripts/publish-docker.sh index 3a2c67a5..e56afd4f 100755 --- a/scripts/publish-docker.sh +++ b/scripts/publish-docker.sh @@ -6,6 +6,7 @@ docker build \ --build-arg VERSION=${VERSION} \ -t mikefarah/yq:latest \ -t mikefarah/yq:${VERSION} \ + -t mikefarah/yq:4 \ . trivy image mikefarah/yq:${VERSION} \ No newline at end of file