Skip to content

Commit

Permalink
Bump GitHub Action workflows
Browse files Browse the repository at this point in the history
[no ci]
  • Loading branch information
slominskir committed Jun 13, 2024
1 parent d64db12 commit de5d0a0
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 16 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/cd.yml → .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,22 @@ on:

jobs:
release:
uses: jeffersonlab/java-workflows/.github/workflows/gh-release.yml@v1
uses: jeffersonlab/java-workflows/.github/workflows/gh-release.yaml@v2
with:
files: build/libs/srm.war
secrets: inherit

docker_publish:
needs:
- release
uses: jeffersonlab/container-workflows/.github/workflows/docker-publish.yml@v1
uses: jeffersonlab/container-workflows/.github/workflows/docker-publish.yaml@v2
with:
semvertag: ${{ needs.release.outputs.semvertag }}
secrets: inherit

acctest_deploy:
needs:
- release
uses: jeffersonlab/general-workflows/.github/workflows/jlab-deploy-app.yml@v1
uses: jeffersonlab/general-workflows/.github/workflows/jlab-deploy-app.yaml@v2
with:
app: srm
env: acctest
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml → .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ on:
branches: [ main ]
workflow_dispatch:

permissions:
contents: read

jobs:
build:
uses: jeffersonlab/java-workflows/.github/workflows/unit-ci.yml@v1
uses: jeffersonlab/java-workflows/.github/workflows/unit-ci.yaml@v2
4 changes: 2 additions & 2 deletions .github/workflows/dd.yml → .github/workflows/dd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- main
paths:
- README.md
- .github/workflows/dd.yml
- .github/workflows/dd.yaml
jobs:
description:
uses: jeffersonlab/container-workflows/.github/workflows/docker-description.yml@v1
uses: jeffersonlab/container-workflows/.github/workflows/docker-description.yaml@v2
secrets: inherit
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# srm [![CI](https://github.com/JeffersonLab/srm/actions/workflows/ci.yml/badge.svg)](https://github.com/JeffersonLab/srm/actions/workflows/ci.yml) [![Docker](https://img.shields.io/docker/v/jeffersonlab/srm?sort=semver&label=DockerHub)](https://hub.docker.com/r/jeffersonlab/srm)
# srm [![CI](https://github.com/JeffersonLab/srm/actions/workflows/ci.yaml/badge.svg)](https://github.com/JeffersonLab/srm/actions/workflows/ci.yaml) [![Docker](https://img.shields.io/docker/v/jeffersonlab/srm?sort=semver&label=DockerHub)](https://hub.docker.com/r/jeffersonlab/srm)
A [Java EE 8](https://en.wikipedia.org/wiki/Jakarta_EE) web application for managing system readiness at Jefferson Lab built with the [Smoothness](https://github.com/JeffersonLab/smoothness) web template.

![Screenshot](https://github.com/JeffersonLab/srm/raw/main/Screenshot.png?raw=true "Screenshot")
Expand Down Expand Up @@ -92,10 +92,10 @@ The [server](https://github.com/JeffersonLab/wildfly/blob/main/scripts/server-se

## Release
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/srm/blob/main/.github/workflows/cd.yml) GitHub Action should run automatically invoking:
- The [Create release](https://github.com/JeffersonLab/java-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. A war file artifact is attached to the release.
- 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/srm/blob/main/compose.override.yaml) to use the new image.
- The [Deploy to JLab](https://github.com/JeffersonLab/general-workflows/blob/main/.github/workflows/jlab-deploy-app.yml) GitHub Action to deploy to the JLab test environment.
2. The [CD](https://github.com/JeffersonLab/srm/blob/main/.github/workflows/cd.yaml) GitHub Action should run automatically invoking:
- The [Create release](https://github.com/JeffersonLab/java-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. A war file artifact is attached to the release.
- 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.
- The [Deploy to JLab](https://github.com/JeffersonLab/general-workflows/blob/main/.github/workflows/jlab-deploy-app.yaml) GitHub Action to deploy to the JLab test environment.

## Deploy
The deploy to JLab's acctest is handled automatically via the release workflow.
Expand Down
2 changes: 1 addition & 1 deletion compose.override.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
services:
srm:
image: jeffersonlab/srm:5.4.3
image: jeffersonlab/srm:latest

0 comments on commit de5d0a0

Please sign in to comment.