Skip to content

Commit

Permalink
Goreleaser & GitHub Actions update (#379)
Browse files Browse the repository at this point in the history
* update goreleaser

* ci: updated github actions

* chore: only run goreleaser on tags
  • Loading branch information
tobybellwood authored Aug 26, 2024
1 parent e4ad4ce commit a7faba1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
tags:
- 'v*'
pull_request:

jobs:
test-suite:
Expand All @@ -15,11 +14,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
Expand All @@ -40,12 +39,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}}
-
Expand All @@ -56,7 +55,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 }}
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/lagoon-cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -40,7 +40,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: "0"
-
Expand All @@ -61,36 +61,36 @@ 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: |
${{ github.repository_owner }}/lagoon-cli
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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a7faba1

Please sign in to comment.