Skip to content

Commit

Permalink
update release action
Browse files Browse the repository at this point in the history
  • Loading branch information
ga-ebp committed Mar 27, 2024
1 parent 7e061da commit e6b97bc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/actions/create-image/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ inputs:
VERSION:
description: 'The version of the image'
required: true
PREFIX:
description: 'The version prefix'
required: true
TAG:
description: 'The tag of the image'
required: true
Expand Down Expand Up @@ -39,13 +42,13 @@ runs:
images: ${{ inputs.IMAGE_NAME }}
labels: |
org.opencontainers.image.created=${{ env.COMMITED_AT }}
org.opencontainers.image.version=${{ inputs.VERSION }}
org.opencontainers.image.version=${{ inputs.PREFIX }}${{ inputs.VERSION }}
org.opencontainers.image.maintainer=EBP Schweiz AG
flavor: |
latest=${{ inputs.LATEST }}
tags: |
${{ inputs.TAG }}
type=semver,pattern={{version}},value=${{ inputs.VERSION }}
${{ inputs.PREFIX }}${{ inputs.VERSION }}
- name: Log in to the GitHub container registry
uses: docker/login-action@v3
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dev-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
with:
IMAGE_NAME: ${{ env.BASE_IMAGE_NAME }}-app
VERSION: ${{ env.VERSION }}
PREFIX: e
TAG: type=edge
LATEST: false
DOCKERFILE: ./apps/client-asset-sg/docker/Dockerfile
Expand All @@ -37,6 +38,7 @@ jobs:
with:
IMAGE_NAME: ${{ env.BASE_IMAGE_NAME }}-api
VERSION: ${{ env.VERSION }}
PREFIX: e
TAG: type=edge
LATEST: false
DOCKERFILE: ./apps/server-asset-sg/docker/Dockerfile
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
with:
IMAGE_NAME: ${{ env.BASE_IMAGE_NAME }}-app
VERSION: ${{ env.VERSION }}
TAG: rc
PREFIX: rc
TAG: release-candidate
LATEST: false
DOCKERFILE: ./apps/client-asset-sg/docker/Dockerfile
TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -34,7 +35,8 @@ jobs:
with:
IMAGE_NAME: ${{ env.BASE_IMAGE_NAME }}-api
VERSION: ${{ env.VERSION }}
TAG: rc
PREFIX: rc
TAG: release-candidate
LATEST: false
DOCKERFILE: ./apps/server-asset-sg/docker/Dockerfile
TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
with:
IMAGE_NAME: ${{ env.BASE_IMAGE_NAME }}-app
VERSION: ${{ env.TAG_NAME }}
PREFIX: v
TAG: release
LATEST: true
DOCKERFILE: ./apps/client-asset-sg/docker/Dockerfile
Expand All @@ -39,6 +40,7 @@ jobs:
with:
IMAGE_NAME: ${{ env.BASE_IMAGE_NAME }}-api
VERSION: ${{ env.TAG_NAME }}
PREFIX: v
TAG: release
LATEST: true
DOCKERFILE: ./apps/server-asset-sg/docker/Dockerfile
Expand Down

0 comments on commit e6b97bc

Please sign in to comment.