From 8857aa8b24740cc99d6e2a33b7987c11c1cd4aa7 Mon Sep 17 00:00:00 2001 From: CI Bot Date: Thu, 17 Oct 2024 12:28:07 +0000 Subject: [PATCH] ci(shared): bump vendored ci files --- ci/vendir.lock.yml | 8 ++++---- ci/vendir.yml | 4 ++-- ci/vendor/pipeline-fragments.lib.yml | 25 +++++++++++++++++++++++++ ci/vendor/tasks/check-code.sh | 10 ++++++++++ 4 files changed, 41 insertions(+), 6 deletions(-) create mode 100755 ci/vendor/tasks/check-code.sh diff --git a/ci/vendir.lock.yml b/ci/vendir.lock.yml index b1405843de..891c8a3953 100644 --- a/ci/vendir.lock.yml +++ b/ci/vendir.lock.yml @@ -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 diff --git a/ci/vendir.yml b/ci/vendir.yml index d7b5db73d0..41f8824393 100644 --- a/ci/vendir.yml +++ b/ci/vendir.yml @@ -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: @@ -22,7 +22,7 @@ directories: - path: . git: url: https://github.com/GaloyMoney/concourse-shared.git - ref: e186c637e85c89d59f52c3a7ac5a3f23b25b5331 + ref: 47fcb3b3e18d67f28b551b8aa9a36e01ef635eda includePaths: - shared/ci/**/* excludePaths: diff --git a/ci/vendor/pipeline-fragments.lib.yml b/ci/vendor/pipeline-fragments.lib.yml index 730836c62a..db93433d0a 100644 --- a/ci/vendor/pipeline-fragments.lib.yml +++ b/ci/vendor/pipeline-fragments.lib.yml @@ -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 @@ -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 diff --git a/ci/vendor/tasks/check-code.sh b/ci/vendor/tasks/check-code.sh new file mode 100755 index 0000000000..2dcd1948c4 --- /dev/null +++ b/ci/vendor/tasks/check-code.sh @@ -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