Add docker buildx gh action

This automatically builds and pushes a cross platform image to Docker
Hub.
pull/190/head
Ben Busby 3 years ago
parent 440c4e9c50
commit 934749e0b8
No known key found for this signature in database
GPG Key ID: 3B08611DF6E62ED2

@ -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 .

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

Loading…
Cancel
Save