Skip to content

Commit

Permalink
Add buildx
Browse files Browse the repository at this point in the history
Signed-off-by: Javier Romero <root@jromero.codes>
  • Loading branch information
jromero committed Mar 3, 2020
1 parent 70826c2 commit d0326b6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,28 @@ jobs:
.filter(a => a.name.includes("linux"))
.map(a => a.browser_download_url)[0];
})
- name: Enable experimental
run: |
echo $'{\n "experimental": true\n}' | sudo tee /etc/docker/daemon.json
sudo service docker restart
docker version -f '{{.Server.Experimental}
- name: Install pack
run: |
curl -s -L -o pack.tgz ${{ steps.pack-download-url.outputs.result }}
tar -xvf pack.tgz
- uses: azure/docker-login@v1
with:
username: cnbs
password: ${{ secrets.REGISTRY_PASSWORD }}
# - uses: azure/docker-login@v1
# with:
# username: cnbs
# password: ${{ secrets.REGISTRY_PASSWORD }}
# - name: Set up Docker Buildx
# id: buildx
# uses: crazy-max/ghaction-docker-buildx@v1
# with:
# version: latest
# - name: Install buildx as default
# run: docker buildx install
# - name: Available platforms
# run: echo ${{ steps.buildx.outputs.platforms }}
- name: Build
run: PACK_CMD=./pack make build-linux
- name: Deploy
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ build-stack-alpine:
bash stacks/build-stack.sh stacks/alpine

build-stack-alpine-x-armv6:
@echo "> Building 'alpine' stack..."
@echo "> Building 'alpine-x-armv6' stack..."
bash stacks/build-stack.sh -o linux/arm/v6 stacks/alpine-x-armv6

build-stack-bionic:
Expand Down
2 changes: 0 additions & 2 deletions stacks/build-stack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ DEFAULT_PLATFORM=linux/amd64
REPO_PREFIX=${DEFAULT_PREFIX}
PLATFORM=${DEFAULT_PLATFORM}

export

usage() {
echo "Usage: "
echo " $0 [-p <prefix>] [-o <platform>] <dir>"
Expand Down

0 comments on commit d0326b6

Please sign in to comment.