Skip to content

Commit

Permalink
ci(shared): bump vendored ci files (#565)
Browse files Browse the repository at this point in the history
Co-authored-by: CI Bot <bot@galoy.io>
  • Loading branch information
galoybot-app[bot] and galoybot authored Jun 24, 2024
1 parent a0cd345 commit 8c5cb11
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 6 deletions.
8 changes: 4 additions & 4 deletions ci/vendir.lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ apiVersion: vendir.k14s.io/v1alpha1
directories:
- contents:
- git:
commitTitle: 'fix: remove nix command from check-code (#55)'
sha: e186c637e85c89d59f52c3a7ac5a3f23b25b5331
commitTitle: 'fix: check-code executable'
sha: cfd07211efb7ef9c986020d1d24069c820fd1717
path: .
path: ../.github/workflows/vendor
- contents:
- git:
commitTitle: 'fix: remove nix command from check-code (#55)'
sha: e186c637e85c89d59f52c3a7ac5a3f23b25b5331
commitTitle: 'fix: check-code executable'
sha: cfd07211efb7ef9c986020d1d24069c820fd1717
path: .
path: vendor
kind: LockConfig
4 changes: 2 additions & 2 deletions ci/vendir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ directories:
- path: . # Copy this folder out to ..
git:
url: https://github.com/GaloyMoney/concourse-shared.git
ref: e186c637e85c89d59f52c3a7ac5a3f23b25b5331
ref: cfd07211efb7ef9c986020d1d24069c820fd1717
includePaths:
- shared/actions/*
excludePaths:
Expand All @@ -20,7 +20,7 @@ directories:
- path: .
git:
url: https://github.com/GaloyMoney/concourse-shared.git
ref: e186c637e85c89d59f52c3a7ac5a3f23b25b5331
ref: cfd07211efb7ef9c986020d1d24069c820fd1717
includePaths:
- shared/ci/**/*
excludePaths:
Expand Down
25 changes: 25 additions & 0 deletions ci/vendor/pipeline-fragments.lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ source:
repository: #@ release_concourse_image()
#@ end

#@ def nix_task_image_config():
type: registry-image
source:
repository: nixpkgs/nix-flakes
#@ end

#@ def slack_failure_notification():
#@ fail_url = "<$ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME| :face_with_symbols_on_mouth: $BUILD_JOB_NAME> failed!"
put: slack
Expand All @@ -54,6 +60,25 @@ params:
text: #@ fail_url
#@ end

#@ def check_code():
name: check-code
serial: true
plan:
- in_parallel:
- { get: repo, trigger: true }
- { get: pipeline-tasks }
- task: check-code
config:
platform: linux
image_resource: #@ nix_task_image_config()
inputs:
- name: pipeline-tasks
- name: repo
run:
path: pipeline-tasks/ci/vendor/tasks/check-code.sh
on_failure: #@ slack_failure_notification()
#@ end

#@ def nodejs_check_code():
name: check-code
serial: true
Expand Down
10 changes: 10 additions & 0 deletions ci/vendor/tasks/check-code.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

#! Auto synced from Shared CI Resources repository
#! Don't change this file, instead change it in github.com/GaloyMoney/concourse-shared

set -eu

pushd repo

nix develop -c make check-code

0 comments on commit 8c5cb11

Please sign in to comment.