Skip to content

Commit e7a3e94

Browse files
authored
Merge pull request #573 from wongma7/al2
Push amazonlinux target to Docker Hub
2 parents 7278cef + 43a4adc commit e7a3e94

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/container-image.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ jobs:
1919
docker buildx build \
2020
-t aws-ebs-csi-driver \
2121
--platform=linux/arm64,linux/amd64 \
22-
--output="type=image,push=false" .
22+
--output="type=image,push=false" . \
23+
--target=amazonlinux
2324
- name: Push to Github registry
2425
run: |
2526
USER=$(echo $GITHUB_REPOSITORY | cut -d'/' -f1)
@@ -31,7 +32,7 @@ jobs:
3132
TAG=$BRANCH
3233
fi
3334
docker login docker.pkg.github.com -u $USER -p ${{ secrets.REGISTRY_TOKEN }}
34-
docker build -t aws-ebs-csi-driver .
35+
docker build -t aws-ebs-csi-driver . --target amazonlinux
3536
docker tag aws-ebs-csi-driver docker.pkg.github.com/$GITHUB_REPOSITORY/$IMAGE:$TAG
3637
docker push docker.pkg.github.com/$GITHUB_REPOSITORY/$IMAGE:$TAG
3738
- name: Push to Dockerhub registry
@@ -47,5 +48,6 @@ jobs:
4748
docker buildx build \
4849
-t $REPO:$TAG \
4950
--platform=linux/arm64,linux/amd64 \
50-
--output="type=image,push=true" .
51+
--output="type=image,push=true" . \
52+
--target=amazonlinux
5153

0 commit comments

Comments
 (0)