termux-packages/.github/workflows/docker_image.yml
Leonid Pliushch c8988499dc
CI: update workflow for Docker image
Try to supply credentials a bit differently.
2021-03-29 17:25:50 +03:00

30 lines
666 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'
workflow_dispatch:
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
run: |
docker login --username xeffyr --password '${{ secrets.DOCKER_HUB_PASSWORD }}'
docker push termux/package-builder:latest