This repository was archived by the owner on Aug 12, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,11 @@ jobs:
17
17
run : git fetch --prune --unshallow
18
18
- name : Get the version
19
19
run : echo ::set-env name=VERSION::${GITHUB_REF/refs\/tags\//}
20
- - uses : azure/docker-login@v1
21
- with :
22
- username : ${{ secrets.DOCKER_USERNAME }}
23
- password : ${{ secrets.DOCKER_PASSWORD }}
20
+ - name : docker login
21
+ env :
22
+ DOCKER_PASSWORD : ${{ secrets.DOCKER_PASSWORD }}
23
+ run : |
24
+ echo "${DOCKER_PASSWORD}" | docker login --username "${{ secret.docker_username }}" --password-stdin docker.io
24
25
- name : Set up Go
25
26
uses : actions/setup-go@v2
26
27
with :
41
42
args : release --rm-dist --debug
42
43
env :
43
44
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
- - name : Update docker manifest
45
- run : |
46
- docker buildx imagetools create \
47
- -t packethost/cluster-api-provider-packet:$VERSION \
48
- packethost/cluster-api-provider-packet:$VERSION-amd64 \
49
- packethost/cluster-api-provider-packet:$VERSION-arm64
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
set -e
3
3
4
+ # This has to be set otherwise the default driver will not work
4
5
docker buildx create --use --name build --node build --driver-opt network=host
6
+
5
7
docker buildx build --push --platform linux/${ARCH} \
6
8
-t packethost/cluster-api-provider-packet:latest-${ARCH} \
7
9
-t packethost/cluster-api-provider-packet:${TAG} -${ARCH} \
8
10
-f ../../Dockerfile.goreleaser .
9
11
12
+ # Update the manifest for the new release
13
+ docker buildx imagetools create \
14
+ -t packethost/cluster-api-provider-packet:${TAG} \
15
+ packethost/cluster-api-provider-packet:${TAG} -${ARCH} \
16
+ packethost/cluster-api-provider-packet:${TAG} -${ARCH}
17
+
18
+ docker buildx imagetools create \
19
+ -t packethost/cluster-api-provider-packet:latest \
20
+ packethost/cluster-api-provider-packet:latest-${ARCH} \
21
+ packethost/cluster-api-provider-packet:latest-${ARCH}
You can’t perform that action at this time.
0 commit comments