2020-01-22 01:25:35 +01:00
|
|
|
name: Docker image
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
- 'scripts/Dockerfile'
|
|
|
|
- 'scripts/properties.sh'
|
|
|
|
- 'scripts/setup-android-sdk.sh'
|
|
|
|
- 'scripts/setup-ubuntu.sh'
|
2020-05-02 14:27:36 +02:00
|
|
|
schedule:
|
|
|
|
- cron: '0 2 * * 0'
|
2020-12-17 22:54:17 +01:00
|
|
|
workflow_dispatch:
|
2020-01-22 01:25:35 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
update:
|
2020-07-01 19:27:59 +02:00
|
|
|
runs-on: ubuntu-latest
|
2020-01-22 01:25:35 +01:00
|
|
|
steps:
|
|
|
|
- name: Clone repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
cd ./scripts
|
|
|
|
docker build --tag termux/package-builder:latest .
|
2022-02-08 10:20:30 +01:00
|
|
|
- name: Login to Docker Hub
|
|
|
|
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'termux/termux-packages'
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
username: grimler
|
|
|
|
password: ${{ secrets.DOCKER_TOKEN }}
|
|
|
|
- name: Push to Docker Hub
|
|
|
|
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'termux/termux-packages'
|
2020-01-22 01:25:35 +01:00
|
|
|
run: |
|
|
|
|
docker push termux/package-builder:latest
|