File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 26
26
- name : Run test
27
27
run : make test
28
28
29
+ - name : Test Docker build
30
+ run : docker build --rm -t ghcr.io/scribd/objinsync:latest .
31
+
32
+
29
33
release :
30
34
name : Release
31
35
if : startsWith(github.ref, 'refs/tags/')
53
57
args : release --rm-dist
54
58
env :
55
59
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
60
+
61
+ - name : Build and publish docker image
62
+ run : |
63
+ VERSION=${GITHUB_REF##*/}
64
+ echo ${SCRIBDBOT_GH_CONTAINER_REGISTRY_TOKEN} | docker login ghcr.io -u scribdbot --password-stdin
65
+ docker build --rm -t "ghcr.io/scribd/objinsync:${VERSION}" .
66
+ docker push "ghcr.io/scribd/objinsync:${VERSION}"
Original file line number Diff line number Diff line change 1
1
FROM golang:1.16.3 as build
2
+ LABEL org.opencontainers.image.source https://github.com/scribd/objinsync
2
3
ADD . /app
3
4
WORKDIR /app
4
5
You can’t perform that action at this time.
0 commit comments