Skip to content

Commit

Permalink
build docker images on new tags only
Browse files Browse the repository at this point in the history
  • Loading branch information
MehmedGIT committed Dec 18, 2024
1 parent f909816 commit e27f2b5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ jobs:
strategy:
fail-fast: true
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-latest]
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}

steps:
Expand Down Expand Up @@ -149,6 +149,7 @@ jobs:
pytest -p no:cacheprovider tests/integration_tests/test_*.py -s -v
build-and-push-docker-images:
if: github.event_name == 'push' && contains(github.ref, '/tags/v')
name: Push ${{matrix.services.module}} to image registry
environment:
name: development
Expand Down Expand Up @@ -194,7 +195,7 @@ jobs:
file: ./src/${{matrix.services.dockerfile}}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}

# deploy-development:
# name: Deploy to development VM
Expand Down

0 comments on commit e27f2b5

Please sign in to comment.