File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 37
37
needs : test
38
38
steps :
39
39
40
+ - name : Login to GitHub Container Registry
41
+ uses : docker/login-action@v1
42
+ with :
43
+ registry : ghcr.io
44
+ username : scribdbot
45
+ password : ${{ secrets.SCRIBDBOT_GH_CONTAINER_REGISTRY_TOKEN }}
46
+
40
47
- name : Check out code into the Go module directory
41
48
uses : actions/checkout@v2
42
49
61
68
- name : Build and publish docker image
62
69
run : |
63
70
VERSION=${GITHUB_REF##*/}
64
- echo ${SCRIBDBOT_GH_CONTAINER_REGISTRY_TOKEN} | docker login ghcr.io -u scribdbot --password-stdin
65
71
docker build --rm -t "ghcr.io/scribd/objinsync:${VERSION}" .
66
72
docker push "ghcr.io/scribd/objinsync:${VERSION}"
Original file line number Diff line number Diff line change 1
- FROM golang:1.16.3 as build
1
+ FROM golang:1.16.5 as build
2
2
LABEL org.opencontainers.image.source https://github.com/scribd/objinsync
3
3
ADD . /app
4
4
WORKDIR /app
You can’t perform that action at this time.
0 commit comments