From 72247b1188d3bd85776affe1cf4b005a135fe178 Mon Sep 17 00:00:00 2001 From: Dimitri Koshkin Date: Thu, 9 Feb 2023 07:49:43 -0800 Subject: [PATCH] ci: build and push images at release to mesosphere registry --- .github/workflows/release.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d76225d8b809..0d2f7b60d483 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,6 +28,10 @@ jobs: go-version: ${{ env.go_version }} - name: generate release artifacts run: | + export REGISTRY=docker.io/mesosphere + export PROD_REGISTRY=$REGISTRY + export STAGING_REGISTRY=$REGISTRY + export TAG=${{ env.RELEASE_TAG }} make release - name: Release uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # tag=v1 @@ -35,3 +39,16 @@ jobs: draft: true files: out/* body: "TODO: Copy release notes shared by the comms team" + - name: Login to Dockerhub Registry + uses: docker/login-action@v2 + with: + username: ${{ secrets.NEXUS_USERNAME }} + password: ${{ secrets.NEXUS_PASSWORD }} + - name: Build and push docker images + run: | + export REGISTRY=docker.io/mesosphere + export PROD_REGISTRY=$REGISTRY + export STAGING_REGISTRY=$REGISTRY + export TAG=${{ env.RELEASE_TAG }} + make ALL_ARCH="amd64 arm64" docker-build-all + make ALL_ARCH="amd64 arm64" docker-push-all