workflows: docker: change auth user, and use docker/login-action
This should make automatic updates work again. docker/login-action allows for authentication with a token instead of password. Inspiration taken from workflow in github.com/termux/termux-docker.
This commit is contained in:
parent
ef60aa9fca
commit
a5994b702c
13
.github/workflows/docker_image.yml
vendored
13
.github/workflows/docker_image.yml
vendored
@ -23,10 +23,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd ./scripts
|
cd ./scripts
|
||||||
docker build --tag termux/package-builder:latest .
|
docker build --tag termux/package-builder:latest .
|
||||||
- name: Push to hub.docker.com
|
- name: Login to Docker Hub
|
||||||
env:
|
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'termux/termux-packages'
|
||||||
DOCKER_LOGIN: xeffyr
|
uses: docker/login-action@v1
|
||||||
DOCKER_PASS: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
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'
|
||||||
run: |
|
run: |
|
||||||
docker login --username "${DOCKER_LOGIN}" --password "${DOCKER_PASS}"
|
|
||||||
docker push termux/package-builder:latest
|
docker push termux/package-builder:latest
|
||||||
|
Loading…
Reference in New Issue
Block a user