forked from HL7-DaVinci/test-ehr
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.03 KB
/
keycloak-docker-cd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Keycloak Docker Image CD
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
keycloak-docker-cd:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
submodules: true
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug
- name: Docker meta data
id: docker-meta-data
uses: docker/metadata-action@v4
with:
images: codexrems/keycloak
flavor: latest=false
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push Keycloak Docker image
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
file: Dockerfile.keycloak
push: true
tags: codexrems/keycloak:latest
labels: ${{ steps.docker-meta-data.outputs.labels }}