File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 3535 username : ${{ github.actor }}
3636 password : ${{ secrets.GITHUB_TOKEN }}
3737
38+ - name : Clone repo to build
39+ run : git clone https://github.com/davidecavestro/gphotos-cdp.git repo
40+
3841 - name : Build and push image
3942 uses : docker/build-push-action@v5
4043 with :
Original file line number Diff line number Diff line change 11FROM golang:1.20.5-bullseye AS build
22
33ENV GO111MODULE=on
4- RUN git clone https://github.com/davidecavestro/gphotos-cdp.git /ws
5- WORKDIR /ws
4+ COPY repo /repo
5+ WORKDIR /repo
66RUN go build
77
88FROM chromedp/headless-shell:latest
@@ -30,7 +30,7 @@ ENV LANGUAGE en_US:en
3030ENV LC_ALL en_US.UTF-8
3131
3232# copy tool binary
33- COPY --from=build /ws /gphotos-cdp /usr/local/bin/
33+ COPY --from=build /repo /gphotos-cdp /usr/local/bin/
3434# copy default script
3535COPY save.sh /usr/local/bin/
3636
You can’t perform that action at this time.
0 commit comments