-
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.
🏗️ config(cd): Add GHA workflows to build backup images.
- Loading branch information
1 parent
faff141
commit 7c54361
Showing
3 changed files
with
97 additions
and
1 deletion.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
.github/workflows/ci:build:image:backup-retention-policy.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: ci:build:image:backup-retention-policy | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
branches: | ||
- main | ||
pull_request: | ||
merge_group: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository_owner }}/patient-backup-retention-policy | ||
|
||
jobs: | ||
|
||
build: | ||
name: Continuous integration (build image backup-retention-policy) | ||
strategy: | ||
matrix: | ||
platform: | ||
- ubuntu-latest | ||
|
||
runs-on: ${{ matrix.platform }} | ||
|
||
timeout-minutes: 15 | ||
|
||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v4 | ||
|
||
- name: Log in to GitHub Packages registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.repository_owner }} | ||
password: ${{ github.token }} | ||
|
||
- name: Build and publish | ||
uses: ./.github/actions/package/build-publish | ||
with: | ||
context: .deploy/backup-retention-policy | ||
package: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} |
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,48 @@ | ||
name: ci:build:image:backup | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
branches: | ||
- main | ||
pull_request: | ||
merge_group: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository_owner }}/patient-backup | ||
|
||
jobs: | ||
|
||
build: | ||
name: Continuous integration (build image backup) | ||
strategy: | ||
matrix: | ||
platform: | ||
- ubuntu-latest | ||
|
||
runs-on: ${{ matrix.platform }} | ||
|
||
timeout-minutes: 15 | ||
|
||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v4 | ||
|
||
- name: Log in to GitHub Packages registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.repository_owner }} | ||
password: ${{ github.token }} | ||
|
||
- name: Build and publish | ||
uses: ./.github/actions/package/build-publish | ||
with: | ||
context: .deploy/backup | ||
package: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} |
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