Create action to build Docker images (#2020)

Update them every two weeks

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
This commit is contained in:
Igor Pečovnik
2020-06-17 13:05:06 +02:00
committed by GitHub
parent 4fa07e52ae
commit 81747cc060

View File

@@ -0,0 +1,20 @@
name: Build Docker image
# This workflow is triggered 1st, 16th and 31st
on:
schedule:
- cron: '0 0 */15 * *'
jobs:
build:
name: latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Login to DockerHub Registry
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
- name: Build Docker image
run: |
echo "latest" > VERSION
./compile.sh docker KERNEL_ONLY="yes" BOARD="bananapi" BRANCH="current" KERNEL_CONFIGURE="no"
- name: Push Docker image
run: docker push armbian/build:latest