Skip to content

Commit

Permalink
💚 (backend) Change name to hopps, add artifact id to container name
Browse files Browse the repository at this point in the history
  • Loading branch information
byte-sized-emi committed Aug 18, 2024
1 parent d6f4564 commit 3da7ee0
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 3da7ee0

Please sign in to comment.