-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature/mx-1599 build containers without glueops and loosen deps (#67)
# Changes <!-- Changes in existing functionality --> - build and push containers without glueops - loosen dependencies in pyproject.toml
- Loading branch information
1 parent
20d79c1
commit d4069cc
Showing
4 changed files
with
51 additions
and
13 deletions.
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
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 |
---|---|---|
|
@@ -87,12 +87,48 @@ jobs: | |
containerize: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
needs: release | ||
steps: | ||
- name: Build, tag and push docker image to ghcr | ||
uses: GlueOps/[email protected] | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Cache requirements | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: cache-requirements | ||
with: | ||
{% raw %}tags: "${{ github.sha }},${{ needs.release.outputs.tag }},latest"{% endraw %} | ||
path: ~/.cache/pip | ||
key: {% raw %}${{ env.cache-name }}-${{ hashFiles('requirements.txt') }}{% endraw %} | ||
restore-keys: | | ||
{% raw %}${{ env.cache-name }}-{% endraw %} | ||
- name: Setup python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Install requirements | ||
run: make setup | ||
|
||
- name: Generate locked requirements.txt | ||
run: | | ||
pdm export --self --output locked-requirements.txt --no-hashes --without dev | ||
- name: 'Login to GitHub Container Registry' | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: {% raw %}${{github.actor}}{% endraw %} | ||
password: {% raw %}${{secrets.GITHUB_TOKEN}}{% endraw %} | ||
|
||
- name: 'Build Inventory Image' | ||
run: | | ||
docker build . | ||
--tag ghcr.io/robert-koch-institut/mex-{{ cookiecutter.project_name }}:latest | ||
--tag ghcr.io/robert-koch-institut/mex-{{ cookiecutter.project_name }}:{% raw %}${{ github.sha }}{% endraw %} | ||
--tag ghcr.io/robert-koch-institut/mex-{{ cookiecutter.project_name }}:{% raw %}${{ needs.release.outputs.tag }}{% endraw %} | ||
docker push ghcr.io/robert-koch-institut/mex-{{ cookiecutter.project_name }}:latest | ||
distribute: | ||
runs-on: ubuntu-latest | ||
|
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