-
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.
chore: integrates new merge action into deploy workflow
- Loading branch information
Showing
2 changed files
with
38 additions
and
10 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 |
---|---|---|
@@ -1,14 +1,29 @@ | ||
on: | ||
workflow_call: | ||
inputs: | ||
deployment_repo: | ||
description: The URL of the repository containing deployment code | ||
required: false | ||
type: string | ||
default: "https://github.com/input-output-hk/catalyst-world" | ||
environment: | ||
description: The target environment to deploy to | ||
required: false | ||
type: string | ||
default: dev | ||
hash_file: | ||
description: The relative path to the hash file to update with deployment information | ||
required: true | ||
type: string | ||
images: | ||
description: A space separated list of images to deploy. | ||
description: A newline separated list of image names to deploy | ||
required: true | ||
type: string | ||
tag: | ||
description: The tag to use for deploying images. | ||
required: true | ||
description: The image tag to deploy | ||
required: false | ||
type: string | ||
default: ${{ github.sha }} | ||
secrets: | ||
token: | ||
description: A Github token with access to the deployment repository. | ||
|
@@ -18,11 +33,20 @@ jobs: | |
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Deploy | ||
uses: input-output-hk/catalyst-ci/actions/deploy@master | ||
- name: Checkout deployment repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ inputs.deployment_repo }} | ||
token: ${{ secrets.token }} | ||
- name: Configure git | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "catalyst-cibot" | ||
- name: Merge hashes | ||
uses: input-output-hk/catalyst-ci/actions/merge@deploy-action | ||
with: | ||
deployment_repo: input-output-hk/catalyst-world | ||
hash_file: "src/kube/environments/${{ inputs.environment }}/hashes.json" | ||
images: ${{ inputs.images }} | ||
environment: dev | ||
tag: ${{ inputs.tag }} | ||
token: ${{ secrets.token }} | ||
- name: Run diff | ||
run: git --no-pager diff |
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