mirror of
https://github.com/benbusby/whoogle-search
synced 2024-11-16 12:13:14 +00:00
d301ba81f3
Also added debug to list architectures for buildx. Needless to say, the buildx action is super flakey (as evidenced by a change to the README breaking the entire build somehow).
29 lines
809 B
YAML
29 lines
809 B
YAML
name: buildx
|
|
|
|
on:
|
|
push:
|
|
branches: develop
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout code
|
|
uses: actions/checkout@v2
|
|
- name: install buildx
|
|
id: buildx
|
|
uses: crazy-max/ghaction-docker-buildx@v1
|
|
with:
|
|
version: latest
|
|
- name: log in to docker hub
|
|
run: |
|
|
echo "${{ secrets.DOCKER_PASSWORD }}" | \
|
|
docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
|
- name: build and push the image
|
|
run: |
|
|
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
|
docker buildx ls
|
|
docker buildx build --push \
|
|
--tag benbusby/whoogle-search:buildx-experimental \
|
|
--platform linux/amd64,linux/arm/v7,linux/arm64 .
|