From 6839efbb6c2d7ddd6efbcbc3a01bf4657f0c712a Mon Sep 17 00:00:00 2001 From: Josh Wolf Date: Fri, 25 Mar 2022 21:06:54 -0600 Subject: [PATCH] this one --- .github/workflows/ci.yaml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index faafcb4..e41b3ee 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,6 +6,7 @@ on: - '*' permissions: + contents: write packages: write jobs: @@ -17,10 +18,18 @@ jobs: uses: docker/setup-qemu-action@v1 - uses: earthly/actions-setup@v1 with: - version: "latest" # or pin to an specific version, e.g. "v0.6.10" - - uses: actions/checkout@v2 - - name: earthly version - run: earthly --version + version: "v0.6.10" + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.17 + + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Fetch all tags + run: git fetch --force --tags - name: build run: earthly --ci +publish-images --GITHUB_TOKEN="${{ secrets.GITHUB_TOKEN }}" @@ -28,12 +37,6 @@ jobs: - name: build-offline-payload run: earthly --ci +offline-payload - - name: Fetch all tags - run: git fetch --force --tags - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: 1.17 - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: