-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CD(scaleway): docker image set PROJECT_VERSION instead of always late…
…st (#102) * wip: get PROJECT_VERSION for docker image * wip ci * wip: without git push * tag with latest * wip * docker push all tags * fix
- Loading branch information
1 parent
819518f
commit 345d72d
Showing
1 changed file
with
26 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,39 +24,44 @@ jobs: | |
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
- uses: actions/checkout@v4 | ||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
version: ${{ env.POETRY_VERSION }} | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
installer-parallel: true | ||
- name: Poetry install & bump version | ||
run: | | ||
poetry install --only dev | ||
poetry version patch | ||
PROJECT_VERSION=$(poetry version --short) | ||
echo "PROJECT_VERSION=$PROJECT_VERSION" >> $GITHUB_ENV | ||
git config user.name barometre-github-actions | ||
git config user.email [email protected] | ||
git add pyproject.toml | ||
git commit -m "[no ci]: ${{ env.PROJECT_VERSION }} bumping version" | ||
git push origin main | ||
- name: Login to Scaleway Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
username: nologin | ||
password: ${{ secrets.SCALEWAY_API_KEY }} | ||
registry: ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }} | ||
|
||
- name: Build mediatree_import image | ||
run: docker build -f Dockerfile_api_import . -t ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}/mediatree_import:${{ env.PROJECT_VERSION }} | ||
- name: Tag mediatree_import latest image | ||
run: docker tag ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}/mediatree_import:${{ env.PROJECT_VERSION }} ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}/mediatree_import:latest | ||
- name: Push mediatree_import Image | ||
run: docker push --all-tags ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}/mediatree_import | ||
|
||
- name: Build ingest_to_db image | ||
run: docker build -f Dockerfile_ingest . -t ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}/ingest_to_db | ||
- name: Push ingest_to_db Image | ||
run: docker push ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}/ingest_to_db | ||
|
||
- name: Build mediatree_import image | ||
run: docker build -f Dockerfile_api_import . -t ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}/mediatree_import:test-pagination | ||
- name: Push mediatree_import Image | ||
run: docker push ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}/mediatree_import:test-pagination | ||
|
||
- name: Build streamlit image | ||
run: docker build -f Dockerfile_streamlit . -t ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}/streamlit | ||
- name: Push streamlit Image | ||
run: docker push ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}/streamlit | ||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
version: ${{ env.POETRY_VERSION }} | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
installer-parallel: true | ||
- name: Poetry install & bump version | ||
run: | | ||
poetry install --only dev | ||
poetry version patch | ||
git config user.name barometre-github-actions | ||
git config user.email [email protected] | ||
git add pyproject.toml | ||
git commit -m "[no ci]: bumping version" | ||
git push origin main |
345d72d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report