Skip to content

Commit

Permalink
workflow updates
Browse files Browse the repository at this point in the history
  • Loading branch information
slominskir committed Dec 18, 2024
1 parent 60800a9 commit e12bb29
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 67 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CD

on:
push:
paths:
- 'VERSION'

jobs:
release:
uses: jeffersonlab/container-workflows/.github/workflows/gh-release.yaml@v2
secrets: inherit

docker_publish:
needs:
- release
uses: jeffersonlab/container-workflows/.github/workflows/docker-publish.yaml@v2
with:
semvertag: ${{ needs.release.outputs.semvertag }}
secrets: inherit
24 changes: 24 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI

on:
push:
branches: [ main ]
paths-ignore:
- 'VERSION'
tags-ignore:
- "v*.*.*"
pull_request:
branches: [ main ]
workflow_dispatch:

permissions:
contents: read

jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Run Docker Build
run: docker build .
13 changes: 13 additions & 0 deletions .github/workflows/dd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: DD
on:
workflow_dispatch:
push:
branches:
- main
paths:
- README.md
- .github/workflows/dd.yaml
jobs:
description:
uses: jeffersonlab/container-workflows/.github/workflows/docker-description.yaml@v2
secrets: inherit
22 changes: 0 additions & 22 deletions .github/workflows/docker-description.yml

This file was deleted.

42 changes: 0 additions & 42 deletions .github/workflows/docker-publish.yml

This file was deleted.

7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Environment variables:
| KC_BOOTSTRAP_ADMIN_PASSWORD | Admin password |

## Release
1. Create a new release on the GitHub Releases page. The release should enumerate changes and link issues.
1. [Publish to DockerHub](https://github.com/JeffersonLab/keycloak/actions/workflows/docker-publish.yml) GitHub Action should run automatically.
1. Bump and commit quick start [image version](https://github.com/JeffersonLab/keycloak/blob/main/compose.override.yaml).
1. Bump the version number in the VERSION file and commit and push to GitHub (using [Semantic Versioning](https://semver.org/)).
2. The [CD](https://github.com/JeffersonLab/keycloak/blob/main/.github/workflows/cd.yaml) GitHub Action should run automatically invoking:
- The [Create release](https://github.com/JeffersonLab/container-workflows/blob/main/.github/workflows/gh-release.yaml) GitHub Action to tag the source and create release notes summarizing any pull requests. Edit the release notes to add any missing details.
- The [Publish docker image](https://github.com/JeffersonLab/container-workflows/blob/main/.github/workflows/docker-publish.yaml) GitHub Action to create a new demo Docker image.
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.1.1

0 comments on commit e12bb29

Please sign in to comment.