Docker ocserv #95
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |