File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 2626 - name : Run test
2727 run : make test
2828
29+ - name : Test Docker build
30+ run : docker build --rm -t ghcr.io/scribd/objinsync:latest .
31+
32+
2933 release :
3034 name : Release
3135 if : startsWith(github.ref, 'refs/tags/')
5357 args : release --rm-dist
5458 env :
5559 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 11FROM golang:1.16.3 as build
2+ LABEL org.opencontainers.image.source https://github.com/scribd/objinsync
23ADD . /app
34WORKDIR /app
45
You can’t perform that action at this time.
0 commit comments