diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 624e1f4aedc8..68d1d808d5da 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