Skip to content

Commit

Permalink
chore: push branch
Browse files Browse the repository at this point in the history
  • Loading branch information
f-necas committed Sep 10, 2024
1 parent 8b2c387 commit 41aefba
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/maven.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- '*'
pull_request:

env:
BRANCH_NAME: ${{ github.base_ref || github.ref_name }}

jobs:
build:

Expand Down Expand Up @@ -51,11 +54,17 @@ jobs:
run: |
docker push georchestra/data-api:latest
- name: push the release branch or tag docker image
if: github.repository == 'georchestra/data-api' && github.actor != 'dependabot[bot]' && (contains(github.ref, 'refs/heads/1.') || startsWith(github.event.ref, 'refs/tags/v'))
- name: push the release tag docker image
if: github.repository == 'georchestra/data-api' && github.actor != 'dependabot[bot]' && startsWith(github.event.ref, 'refs/tags/v')
run: |
docker push georchestra/data-api:${{ steps.version.outputs.VERSION }}
- name: push the release branch docker image
if: github.repository == 'georchestra/data-api' && github.actor != 'dependabot[bot]' && contains(github.ref, 'refs/heads/1.')
run: |
docker tag georchestra/data-api:latest georchestra/data-api:${{ env.BRANCH_NAME }}
docker push georchestra/data-api:${{ env.BRANCH_NAME }}
- name: "Update Docker Hub Description"
if: github.ref == 'refs/heads/main' && github.repository == 'georchestra/data-api' && github.actor != 'dependabot[bot]' && github.event_name != 'pull_request'
uses: peter-evans/dockerhub-description@v3
Expand Down

0 comments on commit 41aefba

Please sign in to comment.