Build docker image with built project
This commit is contained in:
parent
f8beb5f859
commit
07bdfbf240
3 changed files with 15 additions and 4 deletions
11
.github/workflows/docker.yml
vendored
11
.github/workflows/docker.yml
vendored
|
@ -7,6 +7,17 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.10.8"
|
||||
- name: Install poetry
|
||||
uses: abatilo/actions-poetry@v2
|
||||
with:
|
||||
poetry-version: 1.2.2
|
||||
- name: Install dependencies
|
||||
run: poetry install
|
||||
- name: Build project
|
||||
run: poetry build
|
||||
- name: Build the Docker image
|
||||
run: |
|
||||
echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin docker.io
|
||||
|
|
2
.github/workflows/pytest.yml
vendored
2
.github/workflows/pytest.yml
vendored
|
@ -15,7 +15,7 @@ jobs:
|
|||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Run image
|
||||
- name: Install poetry
|
||||
uses: abatilo/actions-poetry@v2
|
||||
with:
|
||||
poetry-version: ${{ matrix.poetry-version }}
|
||||
|
|
|
@ -17,8 +17,8 @@ COPY docker/docker-init.sh /usr/local/bin/
|
|||
RUN chmod +x usr/local/bin/docker-init.sh
|
||||
|
||||
RUN cd /
|
||||
#COPY ${STACOSYS_FILENAME} /
|
||||
RUN wget https://github.com/kianby/stacosys/releases/download/${STACOSYS_VERSION}/${STACOSYS_FILENAME}
|
||||
COPY dist/${STACOSYS_FILENAME} /
|
||||
#RUN wget https://github.com/kianby/stacosys/releases/download/${STACOSYS_VERSION}/${STACOSYS_FILENAME}
|
||||
RUN python3 -m pip install ${STACOSYS_FILENAME} --target /stacosys
|
||||
RUN rm -f ${STACOSYS_FILENAME}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue