-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR does a bit of upkeep on our CI: * Builds the home app for git tags * Adds a job to clean up home app PR images * Adds the home app to the workflow that cleans up untagged container images * Adds the home app to the deploy job * Updates Dependabot to use `development` as the base branch instead of `main` for home app updates * Retires the `add-issue-to-project.yml` job - this is now built-in to the project board * Fixes a harmless but annoying failure where the PR container image cleanup workflow tried to cleanup non-existent MATS container images after a home app update * Adds CodeQL checks for our Go code * Standardizes home app/mats app CI workflow names
- Loading branch information
Showing
9 changed files
with
38 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ jobs: | |
- ceil-vis | ||
- ceil-vis15 | ||
- ensemble | ||
- home | ||
- landuse | ||
- precipAccum | ||
- precipGauge | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Cleanup Home App PR images | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
paths: | ||
- "home/**" | ||
|
||
jobs: | ||
purge-images: | ||
name: Cleanup PR images from ghcr.io | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get tag & appname | ||
run: | | ||
echo "BRANCH=${GITHUB_HEAD_REF}" >> $GITHUB_ENV | ||
- name: Cleanup images | ||
if: ${{ (env.BRANCH != 'development') && (env.BRANCH != 'main') }} # don't prune images from the development or main branches | ||
uses: bots-house/[email protected] | ||
with: | ||
owner: noaa-gsl | ||
name: mats/development/home | ||
token: ${{ secrets.GHCR_CLEANUP_PAT }} | ||
tag: ${{ env.BRANCH }} |
4 changes: 3 additions & 1 deletion
4
.github/workflows/prune-pr-images.yml → .github/workflows/prune-mats-pr-images.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
|
||
jobs: | ||
purge-untagged-images: | ||
name: Delete image from ghcr.io | ||
name: Remove untagged images from ghcr.io | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
@@ -17,6 +17,7 @@ jobs: | |
- ceil-vis | ||
- ceil-vis15 | ||
- ensemble | ||
- home | ||
- landuse | ||
- precipAccum | ||
- precipGauge | ||
|
@@ -32,7 +33,7 @@ jobs: | |
uses: snok/[email protected] | ||
with: | ||
image-names: mats/development/${{ matrix.app }} | ||
cut-off: 1 day ago MST | ||
cut-off: 1 week ago MST | ||
account-type: org | ||
org-name: noaa-gsl | ||
untagged-only: true | ||
|