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 Oct 17, 2024
1 parent 3fa703f commit 8857aa8
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: 'chore: upgrade shared rust github actions (#57)'
sha: 47fcb3b3e18d67f28b551b8aa9a36e01ef635eda
path: .
path: ../.github/workflows/vendor
- contents:
- git:
commitTitle: 'fix: remove nix command from check-code (#55)'
sha: e186c637e85c89d59f52c3a7ac5a3f23b25b5331
commitTitle: 'chore: upgrade shared rust github actions (#57)'
sha: 47fcb3b3e18d67f28b551b8aa9a36e01ef635eda
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: 47fcb3b3e18d67f28b551b8aa9a36e01ef635eda
includePaths:
- shared/actions/*
excludePaths:
Expand All @@ -22,7 +22,7 @@ directories:
- path: .
git:
url: https://github.com/GaloyMoney/concourse-shared.git
ref: e186c637e85c89d59f52c3a7ac5a3f23b25b5331
ref: 47fcb3b3e18d67f28b551b8aa9a36e01ef635eda
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 8857aa8

Please sign in to comment.