From 4fd1e48d2f683e073f5b5f09bc2d2fe0d0094867 Mon Sep 17 00:00:00 2001 From: Erik Rasmussen Date: Thu, 15 Aug 2024 10:19:34 -0500 Subject: [PATCH] CI needs to run lifecycle tests too (#139) * CI needs to run lifecycle tests too * I guess this changed --- .github/workflows/ci.yml | 10 +++++----- .goreleaser.yml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3a3ab24b..89534ab6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -271,6 +271,8 @@ jobs: name: Tests runs-on: ubuntu-latest needs: [setup] + env: + PROVISIONER_IMAGE: baremetal-provisioner:test steps: - name: Checkout uses: actions/checkout@v4 @@ -290,18 +292,16 @@ jobs: uses: docker/build-push-action@v6 with: file: provider/cmd/provisioner/Dockerfile - tags: baremetal-provisioner:test + tags: ${{ env.PROVISIONER_IMAGE }} target: test cache-from: type=gha cache-to: type=gha,mode=max load: true - - name: Test - working-directory: tests + - name: Lifecycle Tests + working-directory: tests/lifecycle run: | go run github.com/onsi/ginkgo/v2/ginkgo run -v --silence-skips --github-output - env: - PROVISIONER_IMAGE: baremetal-provisioner:test install-sh: if: needs.setup.outputs.install-sh == 'true' diff --git a/.goreleaser.yml b/.goreleaser.yml index a0724039..1331d475 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -53,4 +53,4 @@ release: - glob: out/baremetal-provisioner.service snapshot: - name_template: '{{ .Tag }}-SNAPSHOT' + version_template: '{{ .Tag }}-SNAPSHOT'