Skip to content

Commit a8026ef

Browse files
RWejlgaardRasmus Wejlgaard
andauthored
fix: buildx requires setup before using it (#51)
Co-authored-by: Rasmus Wejlgaard <a-rwejlgaard@expediagroup.com>
1 parent bd4bb16 commit a8026ef

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

.github/workflows/publish-latest.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,19 @@ jobs:
2525
- uses: actions/setup-go@v3
2626
with:
2727
go-version: 1.19
28+
2829
- uses: actions/checkout@v3
30+
2931
- name: Log in to the Container registry
3032
uses: docker/login-action@v2.0.0
3133
with:
3234
registry: ghcr.io
3335
username: ${{ github.actor }}
3436
password: ${{ secrets.GITHUB_TOKEN }}
37+
38+
- name: Set up Docker Buildx
39+
uses: docker/setup-buildx-action@v3
40+
3541
- name: Build and push Docker image
3642
uses: docker/build-push-action@v3.0.0
3743
with:

.github/workflows/publish.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,25 @@ jobs:
1111
- uses: actions/setup-go@v3
1212
with:
1313
go-version: 1.17
14+
1415
- uses: actions/checkout@v3
16+
1517
- name: Log in to the Container registry
1618
uses: docker/login-action@v2.0.0
1719
with:
1820
registry: ghcr.io
1921
username: ${{ github.actor }}
2022
password: ${{ secrets.GITHUB_TOKEN }}
23+
2124
- name: Extract metadata (tags, labels) for Docker
2225
id: meta
2326
uses: docker/metadata-action@v4.0.1
2427
with:
2528
images: ghcr.io/${{ github.repository }}
29+
30+
- name: Set up Docker Buildx
31+
uses: docker/setup-buildx-action@v3
32+
2633
- name: Build and push Docker image
2734
uses: docker/build-push-action@v3.0.0
2835
with:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM golang:1.20 as builder
2+
FROM golang:1.24 AS builder
33

44
WORKDIR /workspace
55
# Copy the Go Modules manifests

0 commit comments

Comments
 (0)