From c3e8cade36cfd4fbe8ae45e21c376f64ec4fd8ef Mon Sep 17 00:00:00 2001 From: Evgeniy Dikevich Date: Thu, 16 Oct 2025 12:02:38 +0200 Subject: [PATCH 01/13] Debug skip_github Signed-off-by: Evgeniy Dikevich --- .github/workflows/ci.yml | 4 ++-- actions/setup/action.yml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06601bb1..92872a0e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -78,8 +78,8 @@ jobs: - name: Setup CI uses: input-output-hk/catalyst-forge/actions/setup@master with: - skip_docker: 'true' - skip_github: 'true' + skip_docker: "true" + skip_github: "true" skip_earthly_install: ${{ inputs.forge_version == 'local' && steps.install-local.outputs.cache-hit == false }} skip_earthly_satellite: ${{ inputs.forge_version == 'local' && steps.install-local.outputs.cache-hit == false }} - name: Discovery diff --git a/actions/setup/action.yml b/actions/setup/action.yml index 0965bfdb..e274b598 100644 --- a/actions/setup/action.yml +++ b/actions/setup/action.yml @@ -82,7 +82,7 @@ runs: # Docker Provider - name: Get Docker provider configuration id: docker - if: inputs.skip_docker == 'false' + if: ${{ inputs.skip_docker == "false" }} #continue-on-error: true shell: bash run: | @@ -110,7 +110,7 @@ runs: fi - name: Login to Docker Hub uses: docker/login-action@v3 - if: steps.docker.outputs.username != '' && steps.docker.outputs.password != '' && steps.docker.conclusion == 'success' + if: ${{ steps.docker.outputs.username != '' && steps.docker.outputs.password != '' && steps.docker.conclusion == 'success' }} with: username: ${{ steps.docker.outputs.username }} password: ${{ steps.docker.outputs.password }} @@ -118,7 +118,7 @@ runs: # GitHub Provider - name: Get GitHub provider configuration id: github - if: inputs.skip_github == 'false' + if: ${{ inputs.skip_github == 'false' }} shell: bash run: | echo "==== GitHub Setup =====" @@ -133,7 +133,7 @@ runs: fi - name: Login to GitHub Container Registry uses: docker/login-action@v3 - if: steps.github.outputs.login && steps.github.conclusion == 'success' + if: ${{ steps.github.outputs.login && steps.github.conclusion == 'success' }} with: registry: ghcr.io username: ${{ github.actor }} From 6d0d2b86a433321bc2e9388ef1cb21c243f1c9c2 Mon Sep 17 00:00:00 2001 From: Evgeniy Dikevich Date: Thu, 16 Oct 2025 12:04:46 +0200 Subject: [PATCH 02/13] Debug Signed-off-by: Evgeniy Dikevich --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 92872a0e..9fe1dee3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,7 +76,7 @@ jobs: run: | forge version - name: Setup CI - uses: input-output-hk/catalyst-forge/actions/setup@master + uses: input-output-hk/catalyst-forge/actions/setup@debug-skip-github with: skip_docker: "true" skip_github: "true" From 95b63193e6aeb41cddc70b09d800d3dc506e133c Mon Sep 17 00:00:00 2001 From: Evgeniy Dikevich Date: Thu, 16 Oct 2025 12:21:00 +0200 Subject: [PATCH 03/13] Debug Signed-off-by: Evgeniy Dikevich --- actions/setup/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actions/setup/action.yml b/actions/setup/action.yml index e274b598..81fd566c 100644 --- a/actions/setup/action.yml +++ b/actions/setup/action.yml @@ -82,7 +82,7 @@ runs: # Docker Provider - name: Get Docker provider configuration id: docker - if: ${{ inputs.skip_docker == "false" }} + if: inputs.skip_docker == "false" #continue-on-error: true shell: bash run: | @@ -118,7 +118,7 @@ runs: # GitHub Provider - name: Get GitHub provider configuration id: github - if: ${{ inputs.skip_github == 'false' }} + if: inputs.skip_github == 'false' shell: bash run: | echo "==== GitHub Setup =====" From 934d3bde4e6f388de77c3748ecffbdf9466304bc Mon Sep 17 00:00:00 2001 From: Evgeniy Dikevich Date: Thu, 16 Oct 2025 12:24:20 +0200 Subject: [PATCH 04/13] Debug Signed-off-by: Evgeniy Dikevich --- actions/setup/action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/actions/setup/action.yml b/actions/setup/action.yml index 81fd566c..1332c92d 100644 --- a/actions/setup/action.yml +++ b/actions/setup/action.yml @@ -16,7 +16,7 @@ inputs: skip_docker: description: If true, skip authenticating to DockerHub required: false - default: "false" + default: 'false' skip_earthly_install: description: If true, skip installing Earthly required: false @@ -28,7 +28,7 @@ inputs: skip_github: description: If true, skip authenticating to GitHub Container Registry required: false - default: "false" + default: 'false' skip_kcl: description: If true, skips installing KCL CLI if the provider is configured required: false @@ -82,7 +82,7 @@ runs: # Docker Provider - name: Get Docker provider configuration id: docker - if: inputs.skip_docker == "false" + if: inputs.skip_docker == 'false' #continue-on-error: true shell: bash run: | From 2f74670e356bab9b435b1e0d0fc1b48bf08ed8c0 Mon Sep 17 00:00:00 2001 From: Evgeniy Dikevich Date: Thu, 16 Oct 2025 12:27:27 +0200 Subject: [PATCH 05/13] Debug Signed-off-by: Evgeniy Dikevich --- actions/setup/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/setup/action.yml b/actions/setup/action.yml index 1332c92d..d22eff9d 100644 --- a/actions/setup/action.yml +++ b/actions/setup/action.yml @@ -75,7 +75,7 @@ runs: role-to-assume: ${{ steps.aws.outputs.role }} - name: Login to ECR uses: docker/login-action@v3 - if: steps.aws.outputs.registry != 'null' && steps.aws.conclusion == 'success' + if: ${{ steps.aws.outputs.registry != 'null' && steps.aws.conclusion == 'success' }} with: registry: ${{ steps.aws.outputs.registry }} From bc829608dae27714ac88dc984d2c2f5e1f279e63 Mon Sep 17 00:00:00 2001 From: Evgeniy Dikevich Date: Thu, 16 Oct 2025 12:30:45 +0200 Subject: [PATCH 06/13] Debug Signed-off-by: Evgeniy Dikevich --- actions/setup/action.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/actions/setup/action.yml b/actions/setup/action.yml index d22eff9d..622143ff 100644 --- a/actions/setup/action.yml +++ b/actions/setup/action.yml @@ -73,6 +73,10 @@ runs: with: aws-region: ${{ steps.aws.outputs.region }} role-to-assume: ${{ steps.aws.outputs.role }} + + - run: echo "Are we stuck here?" + shell: bash + - name: Login to ECR uses: docker/login-action@v3 if: ${{ steps.aws.outputs.registry != 'null' && steps.aws.conclusion == 'success' }} From ff20d36da04229975af089ecfa5aa7fff072d16c Mon Sep 17 00:00:00 2001 From: Evgeniy Dikevich Date: Thu, 16 Oct 2025 12:32:40 +0200 Subject: [PATCH 07/13] Debug Signed-off-by: Evgeniy Dikevich --- actions/setup/action.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/actions/setup/action.yml b/actions/setup/action.yml index 622143ff..66f59557 100644 --- a/actions/setup/action.yml +++ b/actions/setup/action.yml @@ -73,16 +73,15 @@ runs: with: aws-region: ${{ steps.aws.outputs.region }} role-to-assume: ${{ steps.aws.outputs.role }} - - - run: echo "Are we stuck here?" - shell: bash - - name: Login to ECR uses: docker/login-action@v3 if: ${{ steps.aws.outputs.registry != 'null' && steps.aws.conclusion == 'success' }} with: registry: ${{ steps.aws.outputs.registry }} + - run: echo "Are we stuck here?" + shell: bash + # Docker Provider - name: Get Docker provider configuration id: docker From f33258268deabc71de2d79ef6f51ee75088c35f0 Mon Sep 17 00:00:00 2001 From: Evgeniy Dikevich Date: Thu, 16 Oct 2025 12:43:13 +0200 Subject: [PATCH 08/13] Debug Signed-off-by: Evgeniy Dikevich --- actions/setup/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/setup/action.yml b/actions/setup/action.yml index 66f59557..5208db61 100644 --- a/actions/setup/action.yml +++ b/actions/setup/action.yml @@ -75,7 +75,7 @@ runs: role-to-assume: ${{ steps.aws.outputs.role }} - name: Login to ECR uses: docker/login-action@v3 - if: ${{ steps.aws.outputs.registry != 'null' && steps.aws.conclusion == 'success' }} + if: ${{ steps.aws.outputs.registry != null && steps.aws.conclusion == 'success' }} with: registry: ${{ steps.aws.outputs.registry }} From 4584e385b67983e6fe4b307de1ad509311e0c1a3 Mon Sep 17 00:00:00 2001 From: Evgeniy Dikevich Date: Thu, 16 Oct 2025 12:47:02 +0200 Subject: [PATCH 09/13] Debug Signed-off-by: Evgeniy Dikevich --- actions/setup/action.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/actions/setup/action.yml b/actions/setup/action.yml index 5208db61..2db887f2 100644 --- a/actions/setup/action.yml +++ b/actions/setup/action.yml @@ -79,9 +79,6 @@ runs: with: registry: ${{ steps.aws.outputs.registry }} - - run: echo "Are we stuck here?" - shell: bash - # Docker Provider - name: Get Docker provider configuration id: docker From f1dd52cd906ee32a7e57d58d29bbb39219a3d797 Mon Sep 17 00:00:00 2001 From: Evgeniy Dikevich Date: Thu, 16 Oct 2025 13:04:44 +0200 Subject: [PATCH 10/13] Debug Signed-off-by: Evgeniy Dikevich --- actions/setup/action.yml | 50 ++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/actions/setup/action.yml b/actions/setup/action.yml index 2db887f2..bf0c9fe1 100644 --- a/actions/setup/action.yml +++ b/actions/setup/action.yml @@ -8,11 +8,11 @@ inputs: skip_aws: description: If true, skip authenticating with AWS and configuring ECR required: false - default: "false" + default: 'false' skip_cue: description: If true, skips installing CUE CLI if the provider is configured required: false - default: "false" + default: 'false' skip_docker: description: If true, skip authenticating to DockerHub required: false @@ -20,11 +20,11 @@ inputs: skip_earthly_install: description: If true, skip installing Earthly required: false - default: "false" + default: 'false' skip_earthly_satellite: description: If true, skip adding authentication for the remote Earthly satellite required: false - default: "false" + default: 'false' skip_github: description: If true, skip authenticating to GitHub Container Registry required: false @@ -32,15 +32,15 @@ inputs: skip_kcl: description: If true, skips installing KCL CLI if the provider is configured required: false - default: "false" + default: 'false' skip_tailscale: description: If true, skips installing and authenticating with skip_tailscale required: false - default: "false" + default: 'false' skip_timoni: description: If true, skips installing Timoni CLI if the provider is configured required: false - default: "false" + default: 'false' runs: using: composite @@ -48,7 +48,7 @@ runs: # AWS Provider - name: Get AWS provider configuration id: aws - if: inputs.skip_aws == 'false' + if: ${{ inputs.skip_aws == 'false' }} #continue-on-error: true shell: bash run: | @@ -69,7 +69,7 @@ runs: fi - name: Login to AWS uses: aws-actions/configure-aws-credentials@v4 - if: steps.aws.outputs.region != '' && steps.aws.outputs.role != '' && steps.aws.conclusion == 'success' + if: ${{ steps.aws.outputs.region != '' && steps.aws.outputs.role != '' && steps.aws.conclusion == 'success' }} with: aws-region: ${{ steps.aws.outputs.region }} role-to-assume: ${{ steps.aws.outputs.role }} @@ -82,7 +82,7 @@ runs: # Docker Provider - name: Get Docker provider configuration id: docker - if: inputs.skip_docker == 'false' + if: ${{ inputs.skip_docker == 'false' }} #continue-on-error: true shell: bash run: | @@ -118,7 +118,7 @@ runs: # GitHub Provider - name: Get GitHub provider configuration id: github - if: inputs.skip_github == 'false' + if: ${{ inputs.skip_github == 'false' }} shell: bash run: | echo "==== GitHub Setup =====" @@ -141,7 +141,7 @@ runs: # Earthly Provider - name: Get Earthly provider configuration - if: inputs.skip_earthly_install == 'false' && inputs.skip_earthly_satellite == 'false' + if: ${{ inputs.skip_earthly_install == 'false' && inputs.skip_earthly_satellite == 'false' }} id: earthly shell: bash run: | @@ -170,12 +170,12 @@ runs: - name: Cache Earthly binary id: cache-binary uses: actions/cache@v4 - if: inputs.skip_earthly_install == 'false' + if: ${{ inputs.skip_earthly_install == 'false' }} with: path: /usr/local/bin/earthly key: ${{ runner.os }}-${{ steps.earthly.outputs.version }} - name: Install Earthly - if: inputs.skip_earthly_install == 'false' && steps.cache-binary.outputs.cache-hit == false + if: ${{ inputs.skip_earthly_install == 'false' && steps.cache-binary.outputs.cache-hit == false }} shell: bash run: | if [[ "${{ steps.earthly.outputs.version }}" == "latest" ]]; then @@ -187,7 +187,7 @@ runs: chmod +x /usr/local/bin/earthly /usr/local/bin/earthly bootstrap - name: Configure Earthly satellite credentials - if: inputs.skip_earthly_satellite == 'false' && steps.earthly.conclusion == 'success' + if: ${{ inputs.skip_earthly_satellite == 'false' && steps.earthly.conclusion == 'success' }} shell: bash run: | rm -rf "$HOME/.earthly" @@ -196,7 +196,7 @@ runs: # Timoni Provider - name: Get Timoni provider configuration id: timoni - if: inputs.skip_timoni == 'false' + if: ${{ inputs.skip_timoni == 'false' }} shell: bash run: | echo "==== Timoni Setup =====" @@ -213,14 +213,14 @@ runs: fi - name: Install Timoni uses: stefanprodan/timoni/actions/setup@main - if: steps.timoni.outputs.install && steps.timoni.conclusion == 'success' + if: ${{ steps.timoni.outputs.install && steps.timoni.conclusion == 'success' }} with: version: ${{ steps.timoni.outputs.version }} # CUE Provider - name: Get CUE provider configuration id: cue - if: inputs.skip_cue == 'false' + if: ${{ inputs.skip_cue == 'false' }} shell: bash run: | echo "==== CUE Setup =====" @@ -237,14 +237,14 @@ runs: fi - name: Install CUE uses: cue-lang/setup-cue@v1.0.0 - if: steps.cue.outputs.install && steps.cue.conclusion == 'success' + if: ${{ steps.cue.outputs.install && steps.cue.conclusion == 'success' }} with: version: v${{ steps.cue.outputs.version }} # KCL Provider - name: Get KCL provider configuration id: kcl - if: inputs.skip_kcl == 'false' + if: ${{ inputs.skip_kcl == 'false' }} shell: bash run: | echo "==== KCL Setup =====" @@ -261,13 +261,13 @@ runs: fi - name: Cache KCL id: cache-kcl - if: steps.kcl.outputs.install && steps.kcl.conclusion == 'success' + if: ${{ steps.kcl.outputs.install && steps.kcl.conclusion == 'success' }} uses: actions/cache@v4 with: path: /usr/local/bin/kcl key: ${{ runner.os }}-kcl-${{ steps.kcl.outputs.version }} - name: Install KCL - if: steps.kcl.outputs.install && steps.cache-kcl.outputs.cache-hit == false + if: ${{ steps.kcl.outputs.install && steps.cache-kcl.outputs.cache-hit == false }} shell: bash run: | WORKDIR="$(mktemp -d)" @@ -275,7 +275,7 @@ runs: curl -Lo "${WORKDIR}/kcl.tar.gz" https://github.com/kcl-lang/cli/releases/download/$VERSION/kcl-$VERSION-linux-amd64.tar.gz cd "${WORKDIR}" && tar -xvzf kcl.tar.gz && mv kcl /usr/local/bin/kcl - name: Check KCL - if: steps.kcl.outputs.install && steps.kcl.conclusion == 'success' + if: ${{ steps.kcl.outputs.install && steps.kcl.conclusion == 'success' }} shell: bash run: | kcl version @@ -283,7 +283,7 @@ runs: # Tailscale Provider - name: Get Tailscale provider configuration id: tailscale - if: inputs.skip_tailscale == 'false' + if: ${{ inputs.skip_tailscale == 'false' }} shell: bash run: | echo "==== Tailscale Setup =====" @@ -320,7 +320,7 @@ runs: echo "configured=$CONFIGURED" >> $GITHUB_OUTPUT - name: Install and configure Tailscale - if: inputs.skip_tailscale == 'false' && steps.tailscale.outputs.configured == 'true' + if: ${{ inputs.skip_tailscale == 'false' && steps.tailscale.outputs.configured == 'true' }} uses: tailscale/github-action@v3 with: oauth-client-id: "${{ steps.tailscale.outputs.client-id }}" From 31960c3dcaccd15d81bedcfab0745bcc1b9fd3f5 Mon Sep 17 00:00:00 2001 From: Evgeniy Dikevich Date: Thu, 16 Oct 2025 13:37:48 +0200 Subject: [PATCH 11/13] Debug Signed-off-by: Evgeniy Dikevich --- actions/setup/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/setup/action.yml b/actions/setup/action.yml index bf0c9fe1..60737429 100644 --- a/actions/setup/action.yml +++ b/actions/setup/action.yml @@ -175,7 +175,7 @@ runs: path: /usr/local/bin/earthly key: ${{ runner.os }}-${{ steps.earthly.outputs.version }} - name: Install Earthly - if: ${{ inputs.skip_earthly_install == 'false' && steps.cache-binary.outputs.cache-hit == false }} + if: ${{ inputs.skip_earthly_install == 'false' && steps.cache-binary.outputs.cache-hit == 'false' }} shell: bash run: | if [[ "${{ steps.earthly.outputs.version }}" == "latest" ]]; then From c635269c9cc30b3aa551f7275f6e2e6271646a79 Mon Sep 17 00:00:00 2001 From: Evgeniy Dikevich Date: Thu, 16 Oct 2025 13:51:40 +0200 Subject: [PATCH 12/13] Add spaces between steps Signed-off-by: Evgeniy Dikevich --- actions/setup/action.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/actions/setup/action.yml b/actions/setup/action.yml index 60737429..d5139e99 100644 --- a/actions/setup/action.yml +++ b/actions/setup/action.yml @@ -67,12 +67,14 @@ runs: else echo "No configuration found for AWS provider" fi + - name: Login to AWS uses: aws-actions/configure-aws-credentials@v4 if: ${{ steps.aws.outputs.region != '' && steps.aws.outputs.role != '' && steps.aws.conclusion == 'success' }} with: aws-region: ${{ steps.aws.outputs.region }} role-to-assume: ${{ steps.aws.outputs.role }} + - name: Login to ECR uses: docker/login-action@v3 if: ${{ steps.aws.outputs.registry != null && steps.aws.conclusion == 'success' }} @@ -108,6 +110,7 @@ runs: else echo "No configuration found for DockerHub provider" fi + - name: Login to Docker Hub uses: docker/login-action@v3 if: ${{ steps.docker.outputs.username != '' && steps.docker.outputs.password != '' && steps.docker.conclusion == 'success' }} @@ -131,6 +134,7 @@ runs: else echo "No configuration found for GitHub provider" fi + - name: Login to GitHub Container Registry uses: docker/login-action@v3 if: ${{ steps.github.outputs.login && steps.github.conclusion == 'success' }} @@ -167,6 +171,7 @@ runs: echo "sat=$CONFIG_SAT" >> GITHUB_OUTPUT echo "version=$VERSION" >> $GITHUB_OUTPUT + - name: Cache Earthly binary id: cache-binary uses: actions/cache@v4 @@ -174,6 +179,7 @@ runs: with: path: /usr/local/bin/earthly key: ${{ runner.os }}-${{ steps.earthly.outputs.version }} + - name: Install Earthly if: ${{ inputs.skip_earthly_install == 'false' && steps.cache-binary.outputs.cache-hit == 'false' }} shell: bash @@ -186,6 +192,7 @@ runs: chmod +x /usr/local/bin/earthly /usr/local/bin/earthly bootstrap + - name: Configure Earthly satellite credentials if: ${{ inputs.skip_earthly_satellite == 'false' && steps.earthly.conclusion == 'success' }} shell: bash @@ -211,6 +218,7 @@ runs: else echo "Not installing Timoni CLI" fi + - name: Install Timoni uses: stefanprodan/timoni/actions/setup@main if: ${{ steps.timoni.outputs.install && steps.timoni.conclusion == 'success' }} @@ -235,6 +243,7 @@ runs: else echo "Not installing CUE CLI" fi + - name: Install CUE uses: cue-lang/setup-cue@v1.0.0 if: ${{ steps.cue.outputs.install && steps.cue.conclusion == 'success' }} @@ -259,6 +268,7 @@ runs: else echo "Not installing KCL CLI" fi + - name: Cache KCL id: cache-kcl if: ${{ steps.kcl.outputs.install && steps.kcl.conclusion == 'success' }} @@ -266,6 +276,7 @@ runs: with: path: /usr/local/bin/kcl key: ${{ runner.os }}-kcl-${{ steps.kcl.outputs.version }} + - name: Install KCL if: ${{ steps.kcl.outputs.install && steps.cache-kcl.outputs.cache-hit == false }} shell: bash @@ -274,6 +285,7 @@ runs: VERSION="${{ steps.kcl.outputs.version }}" curl -Lo "${WORKDIR}/kcl.tar.gz" https://github.com/kcl-lang/cli/releases/download/$VERSION/kcl-$VERSION-linux-amd64.tar.gz cd "${WORKDIR}" && tar -xvzf kcl.tar.gz && mv kcl /usr/local/bin/kcl + - name: Check KCL if: ${{ steps.kcl.outputs.install && steps.kcl.conclusion == 'success' }} shell: bash @@ -319,6 +331,7 @@ runs: fi echo "configured=$CONFIGURED" >> $GITHUB_OUTPUT + - name: Install and configure Tailscale if: ${{ inputs.skip_tailscale == 'false' && steps.tailscale.outputs.configured == 'true' }} uses: tailscale/github-action@v3 From cdfa114cd3ab6e535a5594ea847e65c1cbac0411 Mon Sep 17 00:00:00 2001 From: Evgeniy Dikevich Date: Thu, 16 Oct 2025 14:23:16 +0200 Subject: [PATCH 13/13] Revert to master Signed-off-by: Evgeniy Dikevich --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9fe1dee3..92872a0e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,7 +76,7 @@ jobs: run: | forge version - name: Setup CI - uses: input-output-hk/catalyst-forge/actions/setup@debug-skip-github + uses: input-output-hk/catalyst-forge/actions/setup@master with: skip_docker: "true" skip_github: "true"