Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ jobs:
- name: "Checkout"
uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1

- name: "Build image"
run: |
docker build --build-arg REPO="$REPO" --tag "$DOCKER_REPO:$TAG" .
Expand All @@ -55,6 +62,9 @@ jobs:
echo "Image $DOCKER_REPO:$VPP_VERSION has already been published."
else
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker push "$DOCKER_REPO:$VPP_VERSION"
docker push "$DOCKER_REPO:$TAG"
docker buildx build \
--platform linux/amd64,linux/arm64 \
--output "type=image,push=true" \
--tag "$DOCKER_REPO:$VPP_VERSION" \
--tag "$DOCKER_REPO:$TAG" .
fi