This repository has been archived by the owner on Jul 18, 2024. It is now read-only.
feat(docker): add docker file for production ready image #267
Workflow file for this run
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: CI | |
on: [ push ] | |
jobs: | |
lint-and-test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: moneymeets/action-setup-python-poetry@master | |
- uses: moneymeets/moneymeets-composite-actions/lint-python@master | |
build-image: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: moneymeets/moneymeets-composite-actions/detect-python-version@master | |
id: 'detect-versions' | |
- name: Build image | |
env: | |
SSH_AUTH_SOCK: /tmp/ssh_agent.sock | |
run: | | |
ssh-agent -a $SSH_AUTH_SOCK > /dev/null | |
ssh-add - <<< "${{ secrets.DEPLOY_KEY }}" | |
docker build \ | |
--build-arg PYTHON_VERSION_CONSTRAINT="${{ steps.detect-versions.outputs.python-version-constraint }}" \ | |
--build-arg POETRY_VERSION="${{ steps.detect-versions.outputs.poetry-version }}" \ | |
--ssh default=$SSH_AUTH_SOCK -t sepacetamol-ci . | |
# TODO: share image tag when pushing part is implemented |