File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,21 @@ jobs:
1212 runs-on : ubuntu-latest
1313 steps :
1414 - uses : actions/checkout@v2
15+ - name : Upgrade QEMU
16+ run : |
17+ sudo apt-get update
18+ sudo apt-get install -y qemu binfmt-support qemu-user-static
19+ - name : Fix QEMU binfmt
20+ run : |
21+ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
22+ - name : Set up QEMU
23+ uses : docker/setup-qemu-action@v3
24+ - name : Set up Docker Buildx
25+ uses : docker/setup-buildx-action@v3
1526 - name : Build the Docker image
1627 run : |
1728 echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin docker.io
1829 MYAPP_VERSION=$(git rev-parse --short HEAD)
19- docker buildx create --name mybuilder --driver docker-container --bootstrap --use
20- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
2130 docker buildx build --platform linux/amd64,linux/arm64 --build-arg BUILD_NAME=myapp --build-arg MYAPP_VERSION=${MYAPP_VERSION} --build-arg UPGRADE_REQS="yes" --no-cache -t docker.io/mpgagebioinformatics/myapp:latest -f services/server/Dockerfile --push .
2231 - name : Set Success env
2332 run : echo "GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c 1-8)" >> $GITHUB_ENV
You can’t perform that action at this time.
0 commit comments