Skip to content

Commit d54fea7

Browse files
committed
.github: Add build workflow
1 parent 33bcc82 commit d54fea7

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/docker.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: docker
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
main:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Set up QEMU
13+
uses: docker/setup-qemu-action@v1
14+
- name: Set up Docker Buildx
15+
uses: docker/setup-buildx-action@v1
16+
- name: Login to GCHR
17+
uses: docker/login-action@v1
18+
with:
19+
registry: ghcr.io
20+
username: void-robot
21+
password: ${{ secrets.CR_PAT }}
22+
- name: Set version
23+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
24+
- name: Build and push
25+
id: docker_build
26+
uses: docker/build-push-action@v2
27+
with:
28+
push: true
29+
tags: "ghcr.io/${{ github.repository }}:${{ env.RELEASE_VERSION }}"

0 commit comments

Comments
 (0)