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