Skip to content

Commit

Permalink
workflow updates
Browse files Browse the repository at this point in the history
[no ci]
  • Loading branch information
slominskir committed May 15, 2024
1 parent c7e1f79 commit 8afd297
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 61 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/cd.yml
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.yml@v1
secrets: inherit

docker_publish:
needs:
- release
uses: jeffersonlab/container-workflows/.github/workflows/docker-publish.yml@v1
with:
semvertag: ${{ needs.release.outputs.semvertag }}
secrets: inherit
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: CI
on:
push:
branches: [ main ]
paths-ignore:
- 'VERSION'
tags-ignore:
- "v*.*.*"
pull_request:
branches: [ main ]
workflow_dispatch:
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/dd.yml
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.yml
jobs:
description:
uses: jeffersonlab/container-workflows/.github/workflows/docker-description.yml@v1
secrets: inherit
22 changes: 0 additions & 22 deletions .github/workflows/docker-description.yml

This file was deleted.

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

This file was deleted.

6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,7 @@ These environment variables are Docker specific and are used by the [docker-entr
**Note**: The entrypoint script waits for either an Oracle or a MariaDB database to start but not both. Oracle takes precedence.

## Release
1. Create a new release on the GitHub Releases page. The release should enumerate changes and link issues.
2. Build and publish a new Docker image [from the GitHub tag](https://gist.github.com/slominskir/a7da801e8259f5974c978f9c3091d52c#8-build-an-image-based-of-github-tag). GitHub is configured to do this automatically on git push of semver tag (typically part of GitHub release) or the [Publish to DockerHub](https://github.com/JeffersonLab/wildfly/actions/workflows/docker-publish.yml) action can be manually triggered after selecting a tag.
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/wildfly/blob/main/.github/workflows/cd.yml) GitHub Action should run automatically invoking:
- The [Create release](https://github.com/JeffersonLab/container-workflows/blob/main/.github/workflows/gh-release.yml) 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.yml) GitHub Action to create a new demo Docker image, and bump the [compose.override.yaml](https://github.com/JeffersonLab/wildfly/blob/main/compose.override.yaml) to use the new image.
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.5.0

0 comments on commit 8afd297

Please sign in to comment.