Skip to content

Commit

Permalink
refactor: updates deploy workflow to use new CUE setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed Jan 26, 2024
1 parent 902956e commit f38d465
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 15 deletions.
37 changes: 22 additions & 15 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
default: dev
images:
description: A newline separated list of image names to deploy
required: true
#required: true
type: string
tag:
description: The image tag to deploy
Expand All @@ -36,18 +36,25 @@ jobs:
with:
repository: ${{ inputs.deployment_repo }}
token: ${{ secrets.token }}
- name: Merge hashes
uses: input-output-hk/catalyst-ci/actions/merge@master
with:
hash_file: "src/kube/environments/${{ inputs.environment }}/hashes.json"
images: ${{ inputs.images }}
tag: ${{ inputs.tag }}
- name: Run diff
run: git --no-pager diff
- name: Commit and push
uses: EndBug/add-and-commit@v9
- name: Install updater CLI
uses: input-output-hk/catalyst-ci/actions/install@allow-multiple-install
with:
author_name: catalyst-cibot
author_email: [email protected]
message: "chore: updates ${{ github.event.repository.name }} deployments"
push: true
asset: updater
- name: Test
run: |
updater --help
# - name: Merge hashes
# uses: input-output-hk/catalyst-ci/actions/merge@master
# with:
# hash_file: "src/kube/environments/${{ inputs.environment }}/hashes.json"
# images: ${{ inputs.images }}
# tag: ${{ inputs.tag }}
# - name: Run diff
# run: git --no-pager diff
# - name: Commit and push
# uses: EndBug/add-and-commit@v9
# with:
# author_name: catalyst-cibot
# author_email: [email protected]
# message: "chore: updates ${{ github.event.repository.name }} deployments"
# push: true
11 changes: 11 additions & 0 deletions .github/workflows/temp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
on:
push:

jobs:
deploy:
uses: input-output-hk/catalyst-ci/.github/workflows/deploy.yml@deploy-cue
with:
deployment_repo: input-output-hk/catalyst-world
#images: ${{ inputs.deployment_images }}
secrets:
token: ${{ secrets.CI_BOT_TOKEN }}

0 comments on commit f38d465

Please sign in to comment.