Skip to content

Commit da67b9c

Browse files
committed
Publish releases
1 parent a260930 commit da67b9c

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
docker:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: docker/setup-qemu-action@v2
13+
with:
14+
platforms: 'arm64'
15+
- uses: docker/setup-buildx-action@v2
16+
- uses: docker/login-action@v2
17+
with:
18+
username: ${{ secrets.DOCKERHUB_USERNAME }}
19+
password: ${{ secrets.DOCKERHUB_TOKEN }}
20+
- name: Get the version
21+
id: get_version
22+
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
23+
- uses: docker/build-push-action@v3
24+
with:
25+
push: true
26+
platforms: 'linux/amd64,linux/arm64'
27+
tags: peschee/zx:${{ steps.get_version.outputs.VERSION }}

0 commit comments

Comments
 (0)