EW-959 upgraded keycloak to v25.0.1 (#14) #64
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Docker Image | |
on: | |
push: | |
tags: | |
- "[0-9]*" | |
jobs: | |
publish_docker_image: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v3 | |
- name: Docker meta service name for GitHub development image | |
id: docker_meta_img_dev | |
uses: docker/metadata-action@v4 | |
with: | |
images: ghcr.io/${{ github.repository }}/dev | |
tags: | | |
type=raw,value=latest,enable=${{ github.event.repository.default_branch == 'main' }} | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
- name: Docker meta service name for DockerHub production image | |
id: docker_meta_img_prod | |
uses: docker/metadata-action@v4 | |
with: | |
images: schulcloud/erwin-idm | |
tags: | | |
type=raw,value=latest,enable=${{ github.event.repository.default_branch == 'main' }} | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
- name: Log into GitHub registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Log into DockerHub registry | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_TOKEN }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Build and push ${{ github.repository }} development image | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
file: ./Dockerfile | |
platforms: linux/amd64 | |
push: true | |
target: development | |
tags: ${{ steps.docker_meta_img_dev.outputs.tags }} | |
labels: ${{ steps.docker_meta_img_dev.outputs.labels }} | |
- name: Build and push ${{ github.repository }} production image | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
file: ./Dockerfile | |
platforms: linux/amd64 | |
push: true | |
target: production | |
tags: ${{ steps.docker_meta_img_prod.outputs.tags }} | |
labels: ${{ steps.docker_meta_img_prod.outputs.labels }} |