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 35
35
username : ${{ github.actor }}
36
36
password : ${{ secrets.GITHUB_TOKEN }}
37
37
38
+ - name : Clone repo to build
39
+ run : git clone https://github.com/davidecavestro/gphotos-cdp.git repo
40
+
38
41
- name : Build and push image
39
42
uses : docker/build-push-action@v5
40
43
with :
Original file line number Diff line number Diff line change 1
1
FROM golang:1.20.5-bullseye AS build
2
2
3
3
ENV GO111MODULE=on
4
- RUN git clone https://github.com/davidecavestro/gphotos-cdp.git /ws
5
- WORKDIR /ws
4
+ COPY repo /repo
5
+ WORKDIR /repo
6
6
RUN go build
7
7
8
8
FROM chromedp/headless-shell:latest
@@ -30,7 +30,7 @@ ENV LANGUAGE en_US:en
30
30
ENV LC_ALL en_US.UTF-8
31
31
32
32
# copy tool binary
33
- COPY --from=build /ws /gphotos-cdp /usr/local/bin/
33
+ COPY --from=build /repo /gphotos-cdp /usr/local/bin/
34
34
# copy default script
35
35
COPY save.sh /usr/local/bin/
36
36
You can’t perform that action at this time.
0 commit comments