-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added Docker File * Added Docker File * added build.yml * consistent * added github tokens * updated build.yml * updated build.yml * updated build.yml * updated build.yml * updated pre-config.yaml * updated unit_test.yml * updated unit_test.yml * reverted unit_test.yml and .pre-commit-config.yaml * updated build.yml - Single docker build
- Loading branch information
1 parent
da2670e
commit be56188
Showing
3 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Build_docker.yml | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] | ||
app-version: ['v0.1.1'] # Add more app versions as needed | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Docker | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Build Docker image for each combination of Python and App versions | ||
run: | | ||
docker build --build-arg PYTHON_VERSION=${{ matrix.python-version }} \ | ||
--build-arg APP_VERSION=${{ matrix.app-version }} \ | ||
-t piqture:${{ matrix.app-version }}-${{ matrix.python-version }} . | ||
- name: Run Docker container | ||
run: | | ||
docker run piqture:${{ matrix.app-version }}-${{ matrix.python-version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
ARG PYTHON_VERSION=3.9 | ||
FROM python:${PYTHON_VERSION}-slim-bullseye | ||
|
||
WORKDIR /app | ||
|
||
COPY requirements.txt /app/requirements.txt | ||
|
||
RUN pip install --upgrade pip && pip install -r requirements.txt | ||
COPY . /app | ||
CMD ["python", "setup.py", "--help-commands"] |