Skip to content

Commit

Permalink
Merge pull request #573 from wongma7/al2
Browse files Browse the repository at this point in the history
Push amazonlinux target to Docker Hub
  • Loading branch information
k8s-ci-robot authored Oct 2, 2020
2 parents 7278cef + 43a4adc commit e7a3e94
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/container-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
docker buildx build \
-t aws-ebs-csi-driver \
--platform=linux/arm64,linux/amd64 \
--output="type=image,push=false" .
--output="type=image,push=false" . \
--target=amazonlinux
- name: Push to Github registry
run: |
USER=$(echo $GITHUB_REPOSITORY | cut -d'/' -f1)
Expand All @@ -31,7 +32,7 @@ jobs:
TAG=$BRANCH
fi
docker login docker.pkg.github.com -u $USER -p ${{ secrets.REGISTRY_TOKEN }}
docker build -t aws-ebs-csi-driver .
docker build -t aws-ebs-csi-driver . --target amazonlinux
docker tag aws-ebs-csi-driver docker.pkg.github.com/$GITHUB_REPOSITORY/$IMAGE:$TAG
docker push docker.pkg.github.com/$GITHUB_REPOSITORY/$IMAGE:$TAG
- name: Push to Dockerhub registry
Expand All @@ -47,5 +48,6 @@ jobs:
docker buildx build \
-t $REPO:$TAG \
--platform=linux/arm64,linux/amd64 \
--output="type=image,push=true" .
--output="type=image,push=true" . \
--target=amazonlinux

0 comments on commit e7a3e94

Please sign in to comment.