Skip to content

Update image.yml

Update image.yml #52

Workflow file for this run

name: build and push multiarch image
# based on https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: [ self-hosted, linux, X64 ]
steps:
- uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
platforms: all
- name: install buildx
id: buildx
uses: docker/setup-buildx-action@v1
with:
version: latest
install: true # set default builder
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: login to docker hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USER }}" --password-stdin
- name: build and push images
run: |
docker build --push --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 --tag aktur/openvpn .
echo 'All done :-)'