From 4ccb012ea7c9ae2a0c2f51b9499e815a6ad366a4 Mon Sep 17 00:00:00 2001 From: Toby Bellwood Date: Mon, 26 Aug 2024 11:00:45 +1000 Subject: [PATCH 1/3] update goreleaser --- .github/workflows/goreleaser.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/goreleaser.yaml b/.github/workflows/goreleaser.yaml index ba2b17d4..f3ffef29 100644 --- a/.github/workflows/goreleaser.yaml +++ b/.github/workflows/goreleaser.yaml @@ -15,11 +15,11 @@ jobs: - 1.21 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: "0" - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ${{matrix.goversion}} - name: Build @@ -40,12 +40,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: "0" - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ${{matrix.goversion}} - @@ -56,7 +56,7 @@ jobs: uses: goreleaser/goreleaser-action@v6 with: version: v2 - args: release --verbose --skip=validate --snapshot + args: release --verbose --skip=validate env: GITHUB_TOKEN: ${{ secrets.GH_ACTION_PAT }} GOVERSION: ${{ matrix.goversion }} From 2ab6d5840fec3d2c366062a102f3c65005e836c6 Mon Sep 17 00:00:00 2001 From: Toby Bellwood Date: Mon, 26 Aug 2024 11:05:07 +1000 Subject: [PATCH 2/3] ci: updated github actions --- .github/workflows/lagoon-cli.yaml | 18 +++++++++--------- .github/workflows/mkdocs.yaml | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/lagoon-cli.yaml b/.github/workflows/lagoon-cli.yaml index bd5614a7..330263ab 100644 --- a/.github/workflows/lagoon-cli.yaml +++ b/.github/workflows/lagoon-cli.yaml @@ -19,11 +19,11 @@ jobs: - 1.21 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: "0" - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ${{matrix.goversion}} - name: Build @@ -40,7 +40,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: "0" - @@ -61,7 +61,7 @@ jobs: - name: Docker meta id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v5 with: # list of Docker images to use as base name for tags images: | @@ -69,28 +69,28 @@ jobs: ghcr.io/${{ github.repository_owner }}/lagoon-cli - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 - name: Login to DockerHub if: github.event_name != 'pull_request' - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Login to GHCR if: github.event_name != 'pull_request' - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: context: . platforms: linux/amd64,linux/arm64 diff --git a/.github/workflows/mkdocs.yaml b/.github/workflows/mkdocs.yaml index 6175863a..82c1b760 100644 --- a/.github/workflows/mkdocs.yaml +++ b/.github/workflows/mkdocs.yaml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout main - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Deploy docs uses: mhausenblas/mkdocs-deploy-gh-pages@master From e0589ea4be91a5c05431bc19378c99eb8405efba Mon Sep 17 00:00:00 2001 From: Toby Bellwood Date: Mon, 26 Aug 2024 11:32:09 +1000 Subject: [PATCH 3/3] chore: only run goreleaser on tags --- .github/workflows/goreleaser.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/goreleaser.yaml b/.github/workflows/goreleaser.yaml index f3ffef29..7499d8fc 100644 --- a/.github/workflows/goreleaser.yaml +++ b/.github/workflows/goreleaser.yaml @@ -4,7 +4,6 @@ on: push: tags: - 'v*' - pull_request: jobs: test-suite: