Update Poetry to 1.5.0
#21
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
name: Docker Image CI | |
on: | |
push: | |
branches: [ master ] | |
env: | |
DOCKER_REGISTRY: ${{secrets.DOCKER_REGISTRY}} | |
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}} | |
DOCKER_ACCESS_TOKEN: ${{secrets.DOCKER_ACCESS_TOKEN}} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build the Docker Image | |
run: make build | |
- name: Login to DockerHub | |
run: echo -n $DOCKER_ACCESS_TOKEN | docker login $DOCKER_REGISTRY -u $DOCKER_USERNAME --password-stdin | |
- name: Push Image to DockerHub | |
run: docker push thehale/python-poetry:latest | |
build-versions: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python_image_tag: ["3.7-slim", "3.8-slim", "3.9-slim", "3.10-slim", "3.11-slim"] | |
poetry_version: ["1.4.2", "1.5.0"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build the Docker Image | |
run: > | |
make build-version \ | |
POETRY_VERSION=${{ matrix.poetry_version }} \ | |
PYTHON_IMAGE_TAG=${{ matrix.python_image_tag }} | |
- name: Login to DockerHub | |
run: echo -n $DOCKER_ACCESS_TOKEN | docker login $DOCKER_REGISTRY -u $DOCKER_USERNAME --password-stdin | |
- name: Push Image to DockerHub | |
run: docker push thehale/python-poetry:${{ matrix.poetry_version }}-py${{ matrix.python_image_tag }} |