diff --git a/.github/workflows/api-workflow.yaml b/.github/workflows/api-workflow.yaml index f6eec57d..8b088507 100644 --- a/.github/workflows/api-workflow.yaml +++ b/.github/workflows/api-workflow.yaml @@ -50,11 +50,12 @@ jobs: if: github.event_name != 'pull_request' uses: radicalbit/radicalbit-github-workflows/.github/workflows/docker.yaml@v1 with: - push: ${{ github.event_name != 'pull_request' }} + push: ${{ startsWith(github.ref, 'refs/tags/v') }} context: ./api image: radicalbit-ai-monitoring-api - tag: ${{ startsWith(github.ref, 'refs/tags/v') && github.ref_name || 'latest' }} + tag: github.ref_name dockerhub_shortdesc: "Radicalbit AI Monitoring - backend API" + dockerhub_push_latest: true secrets: USERNAME: ${{ secrets.DOCKER_HUB_USER }} PASSWORD: ${{ secrets.DOCKER_HUB_PAT }} diff --git a/.github/workflows/migrations-workflow.yaml b/.github/workflows/migrations-workflow.yaml index 4715b0a5..bfa3ccb4 100644 --- a/.github/workflows/migrations-workflow.yaml +++ b/.github/workflows/migrations-workflow.yaml @@ -66,12 +66,13 @@ jobs: if: github.event_name != 'pull_request' uses: radicalbit/radicalbit-github-workflows/.github/workflows/docker.yaml@v1 with: - push: ${{ github.event_name != 'pull_request' }} + push: ${{ startsWith(github.ref, 'refs/tags/v') }} context: ./api dockerfile: migrations.Dockerfile image: radicalbit-ai-monitoring-migrations - tag: ${{ startsWith(github.ref, 'refs/tags/v') && github.ref_name || 'latest' }} + tag: github.ref_name dockerhub_shortdesc: "Radicalbit AI Monitoring - database migrations" + dockerhub_push_latest: true secrets: USERNAME: ${{ secrets.DOCKER_HUB_USER }} PASSWORD: ${{ secrets.DOCKER_HUB_PAT }} diff --git a/.github/workflows/spark-workflow.yaml b/.github/workflows/spark-workflow.yaml index 7212d07d..716dfa9c 100644 --- a/.github/workflows/spark-workflow.yaml +++ b/.github/workflows/spark-workflow.yaml @@ -51,11 +51,12 @@ jobs: if: github.event_name != 'pull_request' uses: radicalbit/radicalbit-github-workflows/.github/workflows/docker.yaml@v1 with: - push: ${{ github.event_name != 'pull_request' }} + push: ${{ startsWith(github.ref, 'refs/tags/v') }} context: ./spark image: radicalbit-spark-py - tag: ${{ startsWith(github.ref, 'refs/tags/v') && github.ref_name || 'latest' }} + tag: github.ref_name dockerhub_shortdesc: "Radicalbit AI Monitoring - Apache Spark jobs" + dockerhub_push_latest: true secrets: USERNAME: ${{ secrets.DOCKER_HUB_USER }} PASSWORD: ${{ secrets.DOCKER_HUB_PAT }} diff --git a/.github/workflows/ui-workflow.yaml b/.github/workflows/ui-workflow.yaml index 2e5ae255..b90ea9f9 100644 --- a/.github/workflows/ui-workflow.yaml +++ b/.github/workflows/ui-workflow.yaml @@ -19,11 +19,12 @@ jobs: if: github.event_name != 'pull_request' uses: radicalbit/radicalbit-github-workflows/.github/workflows/docker.yaml@v1 with: - push: ${{ github.event_name != 'pull_request' }} + push: ${{ startsWith(github.ref, 'refs/tags/v') }} context: ./ui image: radicalbit-ai-monitoring-ui - tag: ${{ startsWith(github.ref, 'refs/tags/v') && github.ref_name || 'latest' }} + tag: github.ref_name dockerhub_shortdesc: "Radicalbit AI Monitoring - frontend UI" + dockerhub_push_latest: true secrets: USERNAME: ${{ secrets.DOCKER_HUB_USER }} PASSWORD: ${{ secrets.DOCKER_HUB_PAT }}