Skip to content

Commit

Permalink
fix: clone repo from GH action to avoid unwanted caching
Browse files Browse the repository at this point in the history
  • Loading branch information
davidecavestro committed Jul 22, 2024
1 parent 96e0f44 commit f8302ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Clone repo to build
run: git clone https://github.com/davidecavestro/gphotos-cdp.git repo

- name: Build and push image
uses: docker/build-push-action@v5
with:
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM golang:1.20.5-bullseye AS build

ENV GO111MODULE=on
RUN git clone https://github.com/davidecavestro/gphotos-cdp.git /ws
WORKDIR /ws
COPY repo /repo
WORKDIR /repo
RUN go build

FROM chromedp/headless-shell:latest
Expand Down Expand Up @@ -30,7 +30,7 @@ ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

# copy tool binary
COPY --from=build /ws/gphotos-cdp /usr/local/bin/
COPY --from=build /repo/gphotos-cdp /usr/local/bin/
# copy default script
COPY save.sh /usr/local/bin/

Expand Down

0 comments on commit f8302ec

Please sign in to comment.