From bc5c0a2f588e16d7df6c061c9b5f198fd791c3c0 Mon Sep 17 00:00:00 2001 From: Fred Heinecke Date: Wed, 6 Mar 2024 22:30:19 -0600 Subject: [PATCH 1/3] Enabled build on push --- .github/workflows/cd.yaml | 2 +- .github/workflows/ci.yaml | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) 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..b1b43a1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,6 +24,13 @@ 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 From 647d183541d7274a3a0de4f540b2c160d26c5e0d Mon Sep 17 00:00:00 2001 From: Fred Heinecke Date: Wed, 6 Mar 2024 22:36:23 -0600 Subject: [PATCH 2/3] image ls --- .github/workflows/ci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b1b43a1..4d3a423 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -34,3 +34,4 @@ jobs: earthly --ci --output +all --GIT_TAG="$GIT_TAG" echo "Build outputs" find outputs -type f + docker image ls gha-exporter From 8b75a7287ad2bbd06c251602f8ffb2bc29be4c72 Mon Sep 17 00:00:00 2001 From: Fred Heinecke Date: Wed, 6 Mar 2024 22:37:09 -0600 Subject: [PATCH 3/3] find list file sizes --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4d3a423..d9000bf 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -33,5 +33,5 @@ jobs: 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 + find outputs -type f -exec ls -lh "{}" \; docker image ls gha-exporter