-
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.
- Loading branch information
Showing
10 changed files
with
115 additions
and
353 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
name: Build and Deploy to Production on Release | ||
|
||
on: | ||
release: | ||
types: [ released ] | ||
|
||
jobs: | ||
build-production: | ||
name: Build production ${{ github.event.release.tag_name }} | ||
uses: mlibrary/platform-engineering-workflows/.github/workflows/build-production.yml@v1 | ||
with: | ||
image_name: ${{ vars.IMAGE_NAME }} | ||
tag: ${{ github.event.release.tag_name }} | ||
dockerfile: Dockerfile | ||
secrets: inherit | ||
|
||
deploy-production: | ||
needs: build-production | ||
name: Deploy to production | ||
uses: mlibrary/platform-engineering-workflows/.github/workflows/deploy.yml@v1 | ||
with: | ||
image: ghcr.io/mlibrary/${{ vars.IMAGE_NAME }}:${{ github.event.release.tag_name }} | ||
file: environments/account/production/checkout-history-web-image.txt | ||
secrets: inherit |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Build latest from main and Auto Deploy to workshop | ||
|
||
on: | ||
workflow_run: | ||
workflows: [ 'Run Tests' ] | ||
branches: [ 'main' ] | ||
types: [ completed ] | ||
|
||
|
||
jobs: | ||
build-unstable: | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
uses: mlibrary/platform-engineering-workflows/.github/workflows/build-unstable.yml@v1 | ||
with: | ||
image_name: ${{ vars.IMAGE_NAME }} | ||
tag: ${{ github.sha }} | ||
dockerfile: Dockerfile | ||
secrets: inherit | ||
|
||
deploy-unstable: | ||
needs: build-unstable | ||
name: Deploy to workshop | ||
uses: mlibrary/platform-engineering-workflows/.github/workflows/deploy.yml@v1 | ||
with: | ||
image: ${{ needs.build-unstable.outputs.image }} | ||
file: environments/account/workshop/checkout-history-web-image.txt | ||
secrets: inherit |
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
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,27 @@ | ||
name: Manual Deploy to Production | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: Release | ||
required: true | ||
|
||
jobs: | ||
build-production: | ||
name: Build production ${{ github.event.inputs.tag }} | ||
uses: mlibrary/platform-engineering-workflows/.github/workflows/build-production.yml@v1 | ||
with: | ||
image_name: ${{ vars.IMAGE_NAME }} | ||
tag: ${{ github.event.inputs.tag }} | ||
dockerfile: Dockerfile | ||
secrets: inherit | ||
|
||
deploy-production: | ||
needs: build-production | ||
name: Deploy to production | ||
uses: mlibrary/platform-engineering-workflows/.github/workflows/deploy.yml@v1 | ||
with: | ||
image: ghcr.io/mlibrary/${{ vars.IMAGE_NAME }}:${{ github.event.inputs.tag }} | ||
file: environments/account/production/checkout-history-web-image.txt | ||
secrets: inherit |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.