Add docker buildx gh action

This automatically builds and pushes a cross platform image to Docker
Hub.
main
Ben Busby 2021-01-05 17:53:58 -05:00
parent 440c4e9c50
commit 934749e0b8
No known key found for this signature in database
GPG Key ID: 3B08611DF6E62ED2
2 changed files with 29 additions and 0 deletions

26
.github/workflows/buildx.yml vendored Normal file
View File

@ -0,0 +1,26 @@
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 buildx build --push \
--tag benbusby/whoogle-search:buildx-experimental \
--platform linux/amd64,linux/arm/v7,linux/arm64 .

View File

@ -5,6 +5,9 @@ RUN apt-get update && apt-get install -y \
build-essential \ build-essential \
libcurl4-openssl-dev \ libcurl4-openssl-dev \
libssl-dev \ libssl-dev \
libxml2-dev \
libxslt-dev \
libffi-dev \
tor tor
COPY misc/tor/torrc /etc/tor/torrc COPY misc/tor/torrc /etc/tor/torrc