Skip to content

Commit

Permalink
ci: build and push images at release to mesosphere registry
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoshkin committed Sep 8, 2023
1 parent 30424f6 commit 72247b1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,27 @@ 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
with:
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

0 comments on commit 72247b1

Please sign in to comment.