forked from janus-idp/backstage-showcase
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added support for labels, for supporting image expiration (janus-idp#495
) * added support for labels, for supporting image expiration * Update cron to run at 4:00 UTC (12:00am ET)
- Loading branch information
Showing
3 changed files
with
42 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
<!-- im not sure if we really need a VersionPump since the changes are only related to the CI --> | ||
'app': patch | ||
'backend': patch | ||
--- | ||
|
||
Implemented Support for Custom Docker Image Labels in GitHub Actions Workflow: | ||
|
||
Incorporated functionality to seamlessly manage custom labels for Docker images within the GitHub Actions workflow. The enhancements were made as follows: | ||
|
||
1. **Enhanced Action Configuration (`action.yaml`):** | ||
- Introduced the `imageLabels` parameter in the Docker build action configuration. | ||
- The `imageLabels` parameter empowers users to define custom labels for Docker images during the build process. | ||
2. **Improved Workflow Configuration (`nightly.yaml`):** | ||
- Introduced the `imageLabels` parameter in the workflow configuration. | ||
- Illustrative usage: Setting `imageLabels: quay.expires-after=14d` to specify a 14-day expiration for images. | ||
- When executing the nightly workflow, the Docker image will be enriched with the designated labels. | ||
|
||
**Usage Guide:** | ||
To leverage the new `imageLabels` parameter, navigate to the workflow configuration (`nightly.yaml`) and modify the `imageLabels` parameter as needed: | ||
|
||
```yaml | ||
jobs: | ||
release: | ||
... | ||
steps: | ||
... | ||
- name: Publish | ||
uses: ./.github/actions/docker-build | ||
with: | ||
... | ||
imageLabels: "quay.expires-after=14d" # modify this | ||
push: true | ||
|
||
``` |
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