termux-packages/.github/workflows/docker_image.yml
Leonid Pliushch 41c529fd8c Revert "CI: switch to Ubuntu 20.04 and don't use Docker image as build environment"
This reverts commit eaeb2e609e075adea6c3d783a258996517a83ac5.
2020-07-01 20:27:59 +03:00

32 lines
732 B
YAML

name: Docker image
on:
push:
branches:
- master
paths:
- 'scripts/Dockerfile'
- 'scripts/properties.sh'
- 'scripts/setup-android-sdk.sh'
- 'scripts/setup-ubuntu.sh'
schedule:
- cron: '0 2 * * 0'
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Build
run: |
cd ./scripts
docker build --tag termux/package-builder:latest .
- name: Push to hub.docker.com
env:
DOCKER_LOGIN: xeffyr
DOCKER_PASS: ${{ secrets.DOCKER_HUB_PASSWORD }}
run: |
docker login --username "${DOCKER_LOGIN}" --password "${DOCKER_PASS}"
docker push termux/package-builder:latest