Skip to content

Commit

Permalink
change docker image/version to keep package names
Browse files Browse the repository at this point in the history
  • Loading branch information
icrc-fdeniger committed May 30, 2024
1 parent e83a6d6 commit 6bd40c4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish-mariadb-2.5.12-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
# See https://docs.github.com/en/actions/publishing-packages/publishing-docker-images#publishing-images-to-github-packages
env:
REGISTRY: ghcr.io
IMAGE_NAME: mariadb-10-openmrs-2.5.12
IMAGE_NAME: mariadb-10-openmrs
IMAGE_VERSION: 2.5.12
IMAGE_TAG: latest
CONTEXT: ./database
jobs:
Expand Down Expand Up @@ -34,8 +35,8 @@ jobs:
images: |
${{ env.REGISTRY }}/${{ github.repository }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=${{ env.IMAGE_TAG }}
type=sha
type=raw,value=${{ env.IMAGE_VERSION }}-${{ env.IMAGE_TAG }}
type=sha,prefix=${{ env.IMAGE_VERSION }}-
- name: Build and push MariaDB Docker image
uses: docker/build-push-action@v5
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/publish-mariadb-2.6.4-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: mariadb-10-openmrs-2.6.4
IMAGE_NAME: mariadb-10-openmrs
IMAGE_VERSION: 2.6.4
IMAGE_TAG: latest
CONTEXT: ./database
jobs:
Expand Down Expand Up @@ -33,8 +34,8 @@ jobs:
images: |
${{ env.REGISTRY }}/${{ github.repository }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=${{ env.IMAGE_TAG }}
type=sha
type=raw,value=${{ env.IMAGE_VERSION }}-${{ env.IMAGE_TAG }}
type=sha,prefix=${{ env.IMAGE_VERSION }}-
- name: Build and push MariaDB Docker image
uses: docker/build-push-action@v5
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/publish-openmrs-backend-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ on:
- backend/**
env:
REGISTRY: ghcr.io
IMAGE_NAME: openmrs-backend-2.5.13
IMAGE_NAME: openmrs-backend
IMAGE_VERSION: 2.5.13
IMAGE_TAG: latest
CONTEXT: ./backend
jobs:
Expand Down Expand Up @@ -38,8 +39,8 @@ jobs:
images: |
${{ env.REGISTRY }}/${{ github.repository }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=${{ env.IMAGE_TAG }}
type=sha
type=raw,value=${{ env.IMAGE_VERSION }}-${{ env.IMAGE_TAG }}
type=sha,prefix=${{ env.IMAGE_VERSION }}-
- name: Build and push Backend Docker image
uses: docker/build-push-action@v5
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/publish-openmrs-frontend-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ on:
- frontend/**
env:
REGISTRY: ghcr.io
IMAGE_NAME: openmrs-frontend-qa
IMAGE_NAME: openmrs-frontend
IMAGE_VERSION: qa
IMAGE_TAG: latest
CONTEXT: ./frontend
jobs:
Expand Down Expand Up @@ -38,8 +39,8 @@ jobs:
images: |
${{ env.REGISTRY }}/${{ github.repository }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=${{ env.IMAGE_TAG }}
type=sha
type=raw,value=${{ env.IMAGE_VERSION }}-${{ env.IMAGE_TAG }}
type=sha,prefix=${{ env.IMAGE_VERSION }}-
- name: Build and push Frontend Docker image
uses: docker/build-push-action@v5
Expand Down

0 comments on commit 6bd40c4

Please sign in to comment.