File tree 4 files changed +17
-39
lines changed
4 files changed +17
-39
lines changed Original file line number Diff line number Diff line change 10
10
11
11
jobs :
12
12
build :
13
- strategy :
14
- matrix :
15
- go-version : [1.21.x]
16
- os : [ubuntu-latest]
17
13
concurrency :
18
14
group : ${{ github.ref }}
19
15
cancel-in-progress : true
20
16
21
- runs-on : ${{ matrix.os }}
17
+ runs-on : ubuntu-latest
22
18
23
19
steps :
24
20
- uses : actions/checkout@master
25
21
- name : Install Go
26
- uses : actions/setup-go@v2
22
+ uses : actions/setup-go@master
27
23
with :
28
- go-version : ${{ matrix.go-version }}
24
+ go-version : 1.23.x
29
25
- name : Set up QEMU
30
- uses : docker/setup-qemu-action@v2
26
+ uses : docker/setup-qemu-action@v3
31
27
- name : Set up Docker Buildx
32
- uses : docker/setup-buildx-action@v2
28
+ uses : docker/setup-buildx-action@v3
33
29
34
30
- name : Get TAG
35
31
id : get_tag
45
41
id : get_repo_owner
46
42
run : echo "REPO_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" > $GITHUB_ENV
47
43
48
- - name : Build x86_64 container into library
49
- uses : docker/build-push-action@v2
50
- with :
51
- context : .
52
- file : ./Dockerfile
53
- outputs : " type=docker,push=false"
54
- platforms : linux/amd64
55
- build-args : |
56
- VERSION=${{ env.TAG }}
57
- GIT_COMMIT=${{ github.sha }}
58
- tags : |
59
- ghcr.io/${{ env.REPO_OWNER }}/queue-worker:${{ github.sha }}
60
-
61
- - name : Build multi-arch containers for validation only
62
- uses : docker/build-push-action@v3
44
+ - name : Build multi-arch container image
45
+ uses : docker/build-push-action@v5
63
46
with :
64
47
context : .
65
48
file : ./Dockerfile
Original file line number Diff line number Diff line change 6
6
- ' *'
7
7
jobs :
8
8
build :
9
- strategy :
10
- matrix :
11
- go-version : [1.21.x]
12
- os : [ubuntu-latest]
13
-
14
- runs-on : ${{ matrix.os }}
9
+ runs-on : ubuntu-latest
15
10
16
11
steps :
17
12
- uses : actions/checkout@master
18
13
- name : Install Go
19
- uses : actions/setup-go@v2
14
+ uses : actions/setup-go@master
20
15
with :
21
- go-version : ${{ matrix.go-version }}
16
+ go-version : 1.23.x
22
17
- name : Set up QEMU
23
- uses : docker/setup-qemu-action@v2
18
+ uses : docker/setup-qemu-action@v3
24
19
- name : Set up Docker Buildx
25
- uses : docker/setup-buildx-action@v2
20
+ uses : docker/setup-buildx-action@v3
26
21
27
22
- name : Get TAG
28
23
id : get_tag
@@ -40,18 +35,18 @@ jobs:
40
35
41
36
42
37
- name : Login to Docker Registry
43
- uses : docker/login-action@v2
38
+ uses : docker/login-action@v3
44
39
with :
45
40
username : ${{ github.repository_owner }}
46
41
password : ${{ secrets.GITHUB_TOKEN }}
47
42
registry : ghcr.io
48
43
- name : Publish multi-arch containers to GHCR
49
- uses : docker/build-push-action@v3
44
+ uses : docker/build-push-action@v5
50
45
with :
51
46
context : .
52
47
file : ./Dockerfile
53
48
outputs : " type=registry,push=true"
54
- platforms : linux/amd64,linux/arm/v7,linux/ arm64
49
+ platforms : linux/amd64,linux/arm64
55
50
build-args : |
56
51
VERSION=${{ env.TAG }}
57
52
GIT_COMMIT=${{ github.sha }}
Original file line number Diff line number Diff line change 1
1
2
- FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.21 -alpine as build
2
+ FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.23 -alpine as build
3
3
4
4
ENV GO111MODULE=on
5
5
ENV CGO_ENABLED=0
Original file line number Diff line number Diff line change 1
1
module github.com/openfaas/nats-queue-worker
2
2
3
- go 1.20
3
+ go 1.23
4
4
5
5
require (
6
6
github.com/nats-io/stan.go v0.10.4
You can’t perform that action at this time.
0 commit comments