Skip to content

Commit 6caac5f

Browse files
simplify getting git-clone-ref script
1 parent 829ad8e commit 6caac5f

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/build-image.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,16 @@ jobs:
3535
runs-on: ubuntu-latest
3636
steps:
3737
- name: Checkout repositories
38-
uses: bopen/ci-cd/setup-deploy@main
38+
uses: bopen/ci-cd/setup-deploy@v1
3939
with:
4040
repo: bopen/edh-catalogue-deploy
4141
deps-list: "bopen/edh-catalogue-api bopen/edh-catalogue-manager"
4242
deps-versions-file: bopen/edh-catalogue-deploy/environment.release
4343
git-pat: ${{ secrets.GIT_PAT }}
44+
- name: Copy git-clone-ref.py script
45+
uses: bopen/ci-cd/copy-git-clone-script@v1
46+
with:
47+
target-path: bopen
4448
- name: Harbor login
4549
uses: docker/login-action@v3
4650
with:

Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@ ENV UV_COMPILE_BYTECODE=1 \
1010

1111
WORKDIR /src
1212

13-
# get git-clone-ref.py script
14-
# FIXME: only download the script, not the whole repo
13+
# install git-clone-ref.py dependencies
1514
RUN apt update && apt install -y git \
1615
&& apt clean
1716

18-
RUN git clone --depth 1 https://github.com/bopen/ci-cd.git /tmp/ci-cd \
19-
&& mv /tmp/ci-cd/git-clone/git-clone-ref.py /tmp \
20-
&& rm -rf /tmp/ci-cd
17+
# get git-clone-ref.py script
18+
COPY ./git-clone-ref.py /tmp/git-clone-ref.py
2119

2220
COPY edh-catalogue-api /src/bopen/edh-catalogue-api
2321
COPY edh-catalogue-manager /src/bopen/edh-catalogue-manager

0 commit comments

Comments
 (0)