From c70d2d9fc27dd853191c4f5d44d54264b2a6acea Mon Sep 17 00:00:00 2001 From: lgtm <1gtm@users.noreply.github.com> Date: Thu, 9 Jul 2020 06:31:46 -0700 Subject: [PATCH] [cherry-pick] Build docker images in release workflow (#90) (#92) /cherry-pick Signed-off-by: Tamal Saha Co-authored-by: Tamal Saha --- .github/workflows/release.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 20613afab..1642b0ced 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,6 +22,30 @@ jobs: run: | curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash + - name: Print version info + id: semver + run: | + make version + + - name: Set up Docker Buildx + id: buildx + uses: crazy-max/ghaction-docker-buildx@v1 + with: + buildx-version: latest + qemu-version: latest + + - name: Available platforms + run: echo ${{ steps.buildx.outputs.platforms }} + + - name: Build + env: + DOCKER_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} + USERNAME: 1gtm + APPSCODE_ENV: prod + run: | + docker login --username ${USERNAME} --password ${DOCKER_TOKEN} + make release + - name: Clone charts repository env: GITHUB_USER: 1gtm