diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index 64de2d5..9e7e202 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -42,4 +42,4 @@ jobs: env: GIT_TAG: ${{ github.ref_name }} GH_TOKEN: ${{ github.token }} - run: earthly -ci --push --secret GH_TOKEN +release --GIT_TAG="$GIT_TAG" + run: earthly --ci --push --secret GH_TOKEN +release --GIT_TAG="$GIT_TAG" diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 10dc396..d9000bf 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,6 +24,14 @@ jobs: # renovate: earthly-version version: v0.8.4 - name: Lint Go code - run: earthly -ci +lint --OUTPUT_FORMAT=github-actions + run: earthly --ci +lint --OUTPUT_FORMAT=github-actions - name: Run Go tests - run: earthly -ci +test --OUTPUT_FORMAT=github-actions + run: earthly --ci +test --OUTPUT_FORMAT=github-actions + - name: Run a build + run: | + # Generate a fake git tag + GIT_TAG=$(git describe --tags --match "v[[:digit:]]*.[[:digit:]]*.[[:digit:]]" | sed 's/\(.*\)-\(.*\)-\(.*\)/\1-gen.\2+\3/') + earthly --ci --output +all --GIT_TAG="$GIT_TAG" + echo "Build outputs" + find outputs -type f -exec ls -lh "{}" \; + docker image ls gha-exporter