SABnzbd Docker Build #239
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: SABnzbd Docker Build | |
on: | |
schedule: | |
- cron: '23 5 * * 5' | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout code | |
uses: actions/[email protected] | |
- name: setup qemu | |
id: qemu | |
uses: docker/[email protected] | |
with: | |
platforms: all | |
- name: install buildx | |
id: buildx | |
uses: docker/[email protected] | |
with: | |
version: latest | |
- name: login to docker hub | |
run: echo '${{ secrets.DOCKER_PASSWORD }}' | docker login -u '${{ secrets.DOCKER_USERNAME }}' --password-stdin | |
- name: build updated image | |
run: | | |
BDATE=$(date +%d-%m-%Y) && docker buildx build --push \ | |
--tag avpnusr/sabnzbd:latest --tag avpnusr/sabnzbd:$BDATE \ | |
--platform linux/amd64,linux/arm/v7,linux/arm64 \ | |
--file ./Dockerfile . | |
- name: Clean | |
run: | | |
rm -f ${HOME}/.docker/config.json |