clone upstream repo within build

This commit is contained in:
2023-01-16 15:12:27 -05:00
parent ca0b88c100
commit 184efcd73b
3 changed files with 3 additions and 14 deletions

View File

@@ -19,12 +19,6 @@ jobs:
- name: Check out the repo - name: Check out the repo
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Check out MTAPI repo
uses: actions/checkout@v3
with:
repository: jonthornton/MTAPI
path: MTAPI
- name: Log in to Docker Hub - name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with: with:

View File

@@ -37,13 +37,6 @@ jobs:
if: ${{ env.SEC_SINCE_UPDATE < 86400 }} if: ${{ env.SEC_SINCE_UPDATE < 86400 }}
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Check out MTAPI repo
if: ${{ env.SEC_SINCE_UPDATE < 86400 }}
uses: actions/checkout@v3
with:
repository: jonthornton/MTAPI
path: MTAPI
- name: Log in to Docker Hub - name: Log in to Docker Hub
if: ${{ env.SEC_SINCE_UPDATE < 86400 }} if: ${{ env.SEC_SINCE_UPDATE < 86400 }}
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9

View File

@@ -3,7 +3,9 @@ WORKDIR /app
LABEL com.skoobasteeve.mtapi-docker.version="main" LABEL com.skoobasteeve.mtapi-docker.version="main"
ADD MTAPI . RUN apk add --no-cache git
RUN git clone https://github.com/jonthornton/MTAPI.git /app
COPY data/stations.json data/ COPY data/stations.json data/
COPY data/stations.csv data/ COPY data/stations.csv data/