File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,17 +38,27 @@ jobs:
3838 # registry: registry.hub.docker.com
3939 username : wurstbrot
4040 password : ${{ secrets.HUB_TOKEN }}
41- - name : create and push an image
41+ - name : setup qemu for multi-arch build
42+ uses : docker/setup-qemu-action@v1
43+ - name : setup buildx
44+ id : buildx
45+ uses : docker/setup/buildx-action@v1
46+ - name : create version string
47+ id : version
4248 run : |
4349 if [ "${GITHUB_REF##*/}" == "master" ]; then
4450 VERSION="3.0.0-${GITHUB_RUN_NUMBER}"
4551 else
4652 BRANCH_TO_DOCKER=$(echo ${GITHUB_REF##*/} | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9._-]//g')
4753 VERSION="${BRANCH_TO_DOCKER}-${GITHUB_RUN_NUMBER}"
4854 fi
49- docker build -t wurstbrot/dsomm:latest .
50- docker push wurstbrot/dsomm:latest
51- docker tag wurstbrot/dsomm:latest wurstbrot/dsomm:${VERSION}
52- docker push wurstbrot/dsomm:${VERSION}
53-
54-
55+ - name : create and push an image
56+ uses : docker/build-push-action@v2
57+ with :
58+ context : .
59+ push : true
60+ platforms : linux/amd64,linux/arm64,linux/arm/v7
61+ tags :
62+ - wurstbrot/dsomm:${VERSION}
63+ - wurstbrot/dsomm:lastest
64+
You can’t perform that action at this time.
0 commit comments