diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 882a488f..26867102 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -9,11 +9,10 @@ on: tags: [ 'verein-*.*.*' ] env: - BASE_IMAGE_NAME: ghcr.io/vereinsfin/vereinsfin # org_name/repo_name - DOCKER_TAG_PREFIX: vereinsfin/vereinsfin # project_name/maven_artifact_id - + BASE_IMAGE_NAME: ghcr.io/hopps-app/hopps/vereine # org_name/repo_name/artifact_id + # prefix which needs to be in front of version tags - VERSION_TAG_PREFIX: verein- + VERSION_TAG_PREFIX: 'verein-' jobs: build-code-and-container: @@ -37,11 +36,11 @@ jobs: images: ${{ env.BASE_IMAGE_NAME }} tags: | # increasing run number tag on main - type=raw,prefix=${{env.DOCKER_TAG_PREFIX}},value=${{ github.run_number }},enable={{is_default_branch}} + type=raw,value=${{ github.run_number }},enable={{is_default_branch}} # for version tags (only works for tags) - type=match,prefix=${{env.DOCKER_TAG_PREFIX}},pattern=${{ env.VERSION_TAG_PREFIX }}\d.\d.\d + type=match,pattern=${{ env.VERSION_TAG_PREFIX }}\d.\d.\d # for containers on feature branches - type=ref,prefix=${{env.DOCKER_TAG_PREFIX}},event=branch,enable=${{ github.ref_name != github.event.repository.default_branch }} + type=ref,event=branch,enable=${{ github.ref_name != github.event.repository.default_branch }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3