Skip to content

Commit 588b42c

Browse files
2 parents 9bd0c1f + c9272ab commit 588b42c

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish Docker image
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
main:
9+
runs-on: ubuntu-latest
10+
steps:
11+
# in the future we'll add an arm image for the raspberry
12+
-
13+
name: Set up QEMU
14+
uses: docker/setup-qemu-action@v1
15+
-
16+
name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v1
18+
-
19+
name: Login to DockerHub
20+
uses: docker/login-action@v1
21+
with:
22+
username: ${{ secrets.DOCKERHUB_USERNAME }}
23+
password: ${{ secrets.DOCKER_PASSWORD }}
24+
-
25+
name: Build and push
26+
id: docker_build
27+
uses: docker/build-push-action@v2
28+
with:
29+
push: true
30+
tags: livingwithhippos/unchainedbotkotlin:latest
31+
build-args: |
32+
arg1=value1
33+
arg2=value2
34+
-
35+
name: Image digest
36+
run: echo ${{ steps.docker_build.outputs.digest }}

0 commit comments

Comments
 (0)