forked from armbian/build
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (23 loc) · 913 Bytes
/
Copy pathdocker-to-hub.yml
File metadata and controls
31 lines (23 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Docker hub build
# This workflow is triggered 1st, 16th and 31st
on:
schedule:
- cron: '0 0 */15 * *'
jobs:
build:
name: "Build Docker image"
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'Armbian' }}
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
shell: bash {0}
run: |
sed -i "s/-it --rm/-i --rm/" config/templates/config-docker.conf
touch .ignore_changes
./compile.sh docker KERNEL_ONLY="yes" BOARD="bananapi" BRANCH="current" KERNEL_CONFIGURE="no" USE_TORRENT="yes" REPOSITORY_INSTALL="kernel"
docker tag armbian:$(cat VERSION) armbian/build:latest
- name: Push Docker image
run: docker push armbian/build:latest