Skip to content

Commit

Permalink
ci(shared): bump vendored ci files
Browse files Browse the repository at this point in the history
  • Loading branch information
galoybot committed Jun 24, 2024
1 parent 712204b commit 5f6e270
Show file tree
Hide file tree
Showing 4 changed files with 43 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: 'chore: using nix to check-code'
sha: 655c61f11b911126f7af393a2d7b84aff0dd9886
path: .
path: ../.github/workflows/vendor
- contents:
- git:
commitTitle: 'fix: remove nix command from check-code (#55)'
sha: e186c637e85c89d59f52c3a7ac5a3f23b25b5331
commitTitle: 'chore: using nix to check-code'
sha: 655c61f11b911126f7af393a2d7b84aff0dd9886
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: 655c61f11b911126f7af393a2d7b84aff0dd9886
includePaths:
- shared/actions/*
excludePaths:
Expand All @@ -22,7 +22,7 @@ directories:
- path: .
git:
url: https://github.com/GaloyMoney/concourse-shared.git
ref: e186c637e85c89d59f52c3a7ac5a3f23b25b5331
ref: 655c61f11b911126f7af393a2d7b84aff0dd9886
includePaths:
- shared/ci/**/*
excludePaths:
Expand Down
27 changes: 27 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,27 @@ params:
text: #@ fail_url
#@ end

#@ def check_code():
name: check-code
serial: true
plan:
- in_parallel:
- { get: repo, trigger: true }
- { get: pipeline-tasks }
- { get: bundled-deps, trigger: true}
- task: check-code
config:
platform: linux
image_resource: #@ nix_task_image_config()
inputs:
- name: bundled-deps
- 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 5f6e270

Please sign in to comment.