Skip to content

Commit

Permalink
ci: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sandipndev committed Aug 3, 2023
1 parent 17dd429 commit 3d06b36
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
21 changes: 21 additions & 0 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,27 @@ jobs:
run:
path: pipeline-tasks/ci/tasks/publish-to-crates.sh

- name: publish-to-choco
plan:
- in_parallel:
- { get: repo, passed: [release], trigger: true }
- get: pipeline-tasks
- get: version
- task: publish-to-choco
config:
image_resource:
type: registry-image
source: { repository: chocolatey/choco, tag: latest }
platform: linux
inputs:
- name: version
- name: pipeline-tasks
- name: repo
params:
CHOCO_API_TOKEN: #@ data.values.choco_api_token
run:
path: pipeline-tasks/ci/tasks/publish-to-choco.sh

- name: set-dev-version
plan:
- in_parallel:
Expand Down
9 changes: 9 additions & 0 deletions ci/tasks/publish-to-choco.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

set -eu

choco apikey --key ${CHOCO_API_KEY} --source https://push.chocolatey.org/

pushd repo/dist/choco

# TODO
2 changes: 2 additions & 0 deletions ci/values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ staging_ssh_pub_key: ((staging-ssh.ssh_public_key))
git_version_branch: version
gh_org: GaloyMoney
gh_repository: galoy-cli

crates_api_token: ((crates.token))
choco_api_token: ((chocolatey.token))

slack_channel: galoy-cli-github
slack_username: concourse
Expand Down

0 comments on commit 3d06b36

Please sign in to comment.