Skip to content

Commit ca32b31

Browse files
1gtmtamalsaha
andauthored
[cherry-pick] Build docker image in release workflow (#36) (#37)
/cherry-pick Signed-off-by: Tamal Saha <tamal@appscode.com> Co-authored-by: Tamal Saha <tamal@appscode.com>
1 parent efb98e4 commit ca32b31

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,30 @@ jobs:
2222
run: |
2323
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
2424
25+
- name: Print version info
26+
id: semver
27+
run: |
28+
make version
29+
30+
- name: Set up Docker Buildx
31+
id: buildx
32+
uses: crazy-max/ghaction-docker-buildx@v1
33+
with:
34+
buildx-version: latest
35+
qemu-version: latest
36+
37+
- name: Available platforms
38+
run: echo ${{ steps.buildx.outputs.platforms }}
39+
40+
- name: Build
41+
env:
42+
DOCKER_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
43+
USERNAME: 1gtm
44+
APPSCODE_ENV: prod
45+
run: |
46+
docker login --username ${USERNAME} --password ${DOCKER_TOKEN}
47+
make release
48+
2549
- name: Clone charts repository
2650
env:
2751
GITHUB_USER: 1gtm

0 commit comments

Comments
 (0)