Skip to content

Commit 752b25e

Browse files
authored
Merge pull request #96 from appuio/bump-actions
Bump actions
2 parents 8f383e8 + 405d80b commit 752b25e

File tree

4 files changed

+63
-95
lines changed

4 files changed

+63
-95
lines changed

.github/workflows/lint.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,15 @@ on:
44
pull_request: {}
55
push:
66
branches:
7-
- master
7+
- master
88

99
jobs:
1010
lint:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
14-
- name: Determine Go version from go.mod
15-
run: echo "GO_VERSION=$(grep "go 1." go.mod | cut -d " " -f 2)" >> $GITHUB_ENV
16-
- uses: actions/setup-go@v2
17-
with:
18-
go-version: ${{ env.GO_VERSION }}
19-
- uses: actions/cache@v2
20-
with:
21-
path: ~/go/pkg/mod
22-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
23-
restore-keys: |
24-
${{ runner.os }}-go-
25-
- name: Run linters
26-
run: make lint
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-go@v5
15+
with:
16+
go-version-file: go.mod
17+
- name: Run linters
18+
run: make lint

.github/workflows/master.yml

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,21 @@ name: Master
33
on:
44
push:
55
branches:
6-
- master
6+
- master
77

88
jobs:
99
dist:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
13-
- name: Determine Go version from go.mod
14-
run: echo "GO_VERSION=$(grep "go 1." go.mod | cut -d " " -f 2)" >> $GITHUB_ENV
15-
- uses: actions/setup-go@v2
16-
with:
17-
go-version: ${{ env.GO_VERSION }}
18-
- uses: actions/cache@v2
19-
with:
20-
path: ~/go/pkg/mod
21-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
22-
restore-keys: |
23-
${{ runner.os }}-go-
24-
- name: Build docker images
25-
run: make docker-build -e IMG_TAG=${GITHUB_REF#refs/heads/}
26-
- name: Login to Docker hub
27-
run: docker login -u "${{ secrets.DOCKER_HUB_USER }}" -p "${{ secrets.DOCKER_HUB_PASSWORD }}"
28-
- name: Login to quay.io
29-
run: docker login -u "${{ secrets.QUAY_IO_USER }}" -p "${{ secrets.QUAY_IO_PASSWORD }}" quay.io
30-
- name: Push docker images
31-
run: make docker-push -e IMG_TAG=${GITHUB_REF#refs/heads/}
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-go@v5
14+
with:
15+
go-version-file: go.mod
16+
- name: Build docker images
17+
run: make docker-build -e IMG_TAG=${GITHUB_REF#refs/heads/}
18+
- name: Login to Docker hub
19+
run: docker login -u "${{ secrets.DOCKER_HUB_USER }}" -p "${{ secrets.DOCKER_HUB_PASSWORD }}"
20+
- name: Login to quay.io
21+
run: docker login -u "${{ secrets.QUAY_IO_USER }}" -p "${{ secrets.QUAY_IO_PASSWORD }}" quay.io
22+
- name: Push docker images
23+
run: make docker-push -e IMG_TAG=${GITHUB_REF#refs/heads/}

.github/workflows/release.yml

Lines changed: 33 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -3,49 +3,41 @@ name: Release
33
on:
44
push:
55
tags:
6-
- "*"
6+
- "*"
77

88
jobs:
99
dist:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
13-
with:
14-
fetch-depth: 0
15-
- name: Determine Go version from go.mod
16-
run: echo "GO_VERSION=$(grep "go 1." go.mod | cut -d " " -f 2)" >> $GITHUB_ENV
17-
- uses: actions/setup-go@v2
18-
with:
19-
go-version: ${{ env.GO_VERSION }}
20-
- uses: actions/cache@v2
21-
with:
22-
path: ~/go/pkg/mod
23-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
24-
restore-keys: |
25-
${{ runner.os }}-go-
26-
- name: Import GPG signing key
27-
uses: crazy-max/ghaction-import-gpg@v4
28-
with:
29-
gpg_private_key: ${{ secrets.SIGNING_KEY }}
30-
- name: Login to Docker hub
31-
run: docker login -u "${{ secrets.DOCKER_HUB_USER }}" -p "${{ secrets.DOCKER_HUB_PASSWORD }}"
32-
- name: Login to quay.io
33-
run: docker login -u "${{ secrets.QUAY_IO_USER }}" -p "${{ secrets.QUAY_IO_PASSWORD }}" quay.io
34-
- name: Build changelog from PRs with labels
35-
id: build_changelog
36-
uses: mikepenz/release-changelog-builder-action@v2
37-
with:
38-
configuration: ".github/changelog-configuration.json"
39-
# PreReleases still get a changelog, but the next full release gets a diff since the last full release,
40-
# combining possible changelogs of all previous PreReleases in between. PreReleases show a partial changelog
41-
# since last PreRelease.
42-
ignorePreReleases: "${{ !contains(github.ref, '-rc') }}"
43-
outputFile: .github/release-notes.md
44-
env:
45-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
- name: Publish releases
47-
uses: goreleaser/goreleaser-action@v2
48-
with:
49-
args: release --release-notes .github/release-notes.md
50-
env:
51-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
- uses: actions/setup-go@v5
16+
with:
17+
go-version-file: go.mod
18+
- name: Import GPG signing key
19+
uses: crazy-max/ghaction-import-gpg@v4
20+
with:
21+
gpg_private_key: ${{ secrets.SIGNING_KEY }}
22+
- name: Login to Docker hub
23+
run: docker login -u "${{ secrets.DOCKER_HUB_USER }}" -p "${{ secrets.DOCKER_HUB_PASSWORD }}"
24+
- name: Login to quay.io
25+
run: docker login -u "${{ secrets.QUAY_IO_USER }}" -p "${{ secrets.QUAY_IO_PASSWORD }}" quay.io
26+
- name: Build changelog from PRs with labels
27+
id: build_changelog
28+
uses: mikepenz/release-changelog-builder-action@v2
29+
with:
30+
configuration: ".github/changelog-configuration.json"
31+
# PreReleases still get a changelog, but the next full release gets a diff since the last full release,
32+
# combining possible changelogs of all previous PreReleases in between. PreReleases show a partial changelog
33+
# since last PreRelease.
34+
ignorePreReleases: "${{ !contains(github.ref, '-rc') }}"
35+
outputFile: .github/release-notes.md
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
- name: Publish releases
39+
uses: goreleaser/goreleaser-action@v2
40+
with:
41+
args: release --release-notes .github/release-notes.md
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,20 @@ name: Test
33
on:
44
push:
55
branches:
6-
- master
6+
- master
77
pull_request:
88
branches:
9-
- master
9+
- master
1010

1111
jobs:
1212
test:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
16-
with:
17-
fetch-depth: 0
18-
- name: Determine Go version from go.mod
19-
run: echo "GO_VERSION=$(grep "go 1." go.mod | cut -d " " -f 2)" >> $GITHUB_ENV
20-
- uses: actions/setup-go@v2
21-
with:
22-
go-version: ${{ env.GO_VERSION }}
23-
- uses: actions/cache@v2
24-
with:
25-
path: ~/go/pkg/mod
26-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
27-
restore-keys: |
28-
${{ runner.os }}-go-
29-
- name: Run tests
30-
run: make test
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- uses: actions/setup-go@v5
19+
with:
20+
go-version-file: go.mod
21+
- name: Run tests
22+
run: make test

0 commit comments

Comments
 (0)