Build docker image with built project
This commit is contained in:
@@ -6,7 +6,18 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- 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
|
- name: Build the Docker image
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin docker.io
|
echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin docker.io
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ jobs:
|
|||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Run image
|
- name: Install poetry
|
||||||
uses: abatilo/actions-poetry@v2
|
uses: abatilo/actions-poetry@v2
|
||||||
with:
|
with:
|
||||||
poetry-version: ${{ matrix.poetry-version }}
|
poetry-version: ${{ matrix.poetry-version }}
|
||||||
|
|||||||
+2
-2
@@ -17,8 +17,8 @@ COPY docker/docker-init.sh /usr/local/bin/
|
|||||||
RUN chmod +x usr/local/bin/docker-init.sh
|
RUN chmod +x usr/local/bin/docker-init.sh
|
||||||
|
|
||||||
RUN cd /
|
RUN cd /
|
||||||
#COPY ${STACOSYS_FILENAME} /
|
COPY dist/${STACOSYS_FILENAME} /
|
||||||
RUN wget https://github.com/kianby/stacosys/releases/download/${STACOSYS_VERSION}/${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 python3 -m pip install ${STACOSYS_FILENAME} --target /stacosys
|
||||||
RUN rm -f ${STACOSYS_FILENAME}
|
RUN rm -f ${STACOSYS_FILENAME}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user