Skip to content

Docker ocserv

Docker ocserv #95

Workflow file for this run

name: Docker ocserv
on:
schedule:
- cron: '0 0 * * 5'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: docker login
run: |
echo ${{ secrets.DOCKER_PASSWORD }} | docker login --username ${{ secrets.DOCKER_USER }} --password-stdin
- name: docker buildx multiarch
run: |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --name multiarch --driver docker-container --use
docker buildx inspect --bootstrap
- name: docker build docker
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
run: |
docker buildx build . -t $DOCKER_USER/ocserv:latest --platform linux/arm64,linux/arm/v6,linux/amd64 --push