Skip to content

Commit

Permalink
ci: publish 'develop' images when main pushed (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
paoloyx authored Jul 26, 2024
1 parent 80875c2 commit 8fb4632
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/api-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ jobs:
if: github.event_name != 'pull_request'
uses: radicalbit/radicalbit-github-workflows/.github/workflows/docker.yaml@v1
with:
push: ${{ startsWith(github.ref, 'refs/tags/v') }}
push: ${{ github.event_name != 'pull_request' }}
context: ./api
image: radicalbit-ai-monitoring-api
tag: github.ref_name
tag: ${{ startsWith(github.ref, 'refs/tags/v') && github.ref_name || 'develop' }}
dockerhub_shortdesc: "Radicalbit AI Monitoring - backend API"
dockerhub_push_latest: true
dockerhub_push_latest: ${{ startsWith(github.ref, 'refs/tags/v') }}
secrets:
USERNAME: ${{ secrets.DOCKER_HUB_USER }}
PASSWORD: ${{ secrets.DOCKER_HUB_PAT }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/migrations-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ jobs:
if: github.event_name != 'pull_request'
uses: radicalbit/radicalbit-github-workflows/.github/workflows/docker.yaml@v1
with:
push: ${{ startsWith(github.ref, 'refs/tags/v') }}
push: ${{ github.event_name != 'pull_request' }}
context: ./api
dockerfile: migrations.Dockerfile
image: radicalbit-ai-monitoring-migrations
tag: github.ref_name
tag: ${{ startsWith(github.ref, 'refs/tags/v') && github.ref_name || 'develop' }}
dockerhub_shortdesc: "Radicalbit AI Monitoring - database migrations"
dockerhub_push_latest: true
dockerhub_push_latest: ${{ startsWith(github.ref, 'refs/tags/v') }}
secrets:
USERNAME: ${{ secrets.DOCKER_HUB_USER }}
PASSWORD: ${{ secrets.DOCKER_HUB_PAT }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/spark-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ jobs:
if: github.event_name != 'pull_request'
uses: radicalbit/radicalbit-github-workflows/.github/workflows/docker.yaml@v1
with:
push: ${{ startsWith(github.ref, 'refs/tags/v') }}
push: ${{ github.event_name != 'pull_request' }}
context: ./spark
image: radicalbit-spark-py
tag: github.ref_name
tag: ${{ startsWith(github.ref, 'refs/tags/v') && github.ref_name || 'develop' }}
dockerhub_shortdesc: "Radicalbit AI Monitoring - Apache Spark jobs"
dockerhub_push_latest: true
dockerhub_push_latest: ${{ startsWith(github.ref, 'refs/tags/v') }}
secrets:
USERNAME: ${{ secrets.DOCKER_HUB_USER }}
PASSWORD: ${{ secrets.DOCKER_HUB_PAT }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ui-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
if: github.event_name != 'pull_request'
uses: radicalbit/radicalbit-github-workflows/.github/workflows/docker.yaml@v1
with:
push: ${{ startsWith(github.ref, 'refs/tags/v') }}
push: ${{ github.event_name != 'pull_request' }}
context: ./ui
image: radicalbit-ai-monitoring-ui
tag: github.ref_name
tag: ${{ startsWith(github.ref, 'refs/tags/v') && github.ref_name || 'develop' }}
dockerhub_shortdesc: "Radicalbit AI Monitoring - frontend UI"
dockerhub_push_latest: true
dockerhub_push_latest: ${{ startsWith(github.ref, 'refs/tags/v') }}
secrets:
USERNAME: ${{ secrets.DOCKER_HUB_USER }}
PASSWORD: ${{ secrets.DOCKER_HUB_PAT }}
Expand Down

0 comments on commit 8fb4632

Please sign in to comment.