generated from onedr0p/cluster-template
-
-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (34 loc) · 1.07 KB
/
deploy-keycloak-theme.yaml
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
---
name: Deploy Keycloak Theme to GHCR
# Run workflow on tags starting with v (eg. v2, v1.2.0)
on:
workflow_dispatch:
push:
branches:
- main
paths:
- static/themes/*
env:
registry: ghcr.io
themeName: bloopnet_theme
dockerfile_path: ./Dockerfiles/keycloak-theme.Dockerfile
jobs:
Deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.registry }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v6
with:
file: ${{ env.dockerfile_path }}
push: true # Will only build if this is not here
tags: |
ghcr.io/${{ github.repository_owner }}/${{ env.themeName }}:${{ github.sha }}
ghcr.io/${{ github.repository_owner }}/${{ env.themeName }}:latest