move to github.actor instead of The Greatest

It'll be easeier to test and work on it with some abstraction on top of 🤣umputun
This commit is contained in:
Grigory Bakunov
2021-04-11 09:55:31 +03:00
committed by GitHub
parent 9462170cd1
commit 73461a822c

View File

@@ -49,9 +49,10 @@ jobs:
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }}
env:
GITHUB_PACKAGE_TOKEN: ${{ secrets.PKG_TOKEN }}
USERNAME: ${{ github.actor }}
run: |
ref="$(echo ${GITHUB_REF} | cut -d'/' -f3)"
echo GITHUB_REF - $ref
echo ${GITHUB_PACKAGE_TOKEN} | docker login ghcr.io -u umputun --password-stdin
docker build -t ghcr.io/umputun/reproxy:${ref} .
docker push ghcr.io/umputun/reproxy:${ref}
echo ${GITHUB_PACKAGE_TOKEN} | docker login ghcr.io -u ${USERNAME} --password-stdin
docker build -t ghcr.io/${USERNAME}/reproxy:${ref} .
docker push ghcr.io/${USERNAME}/reproxy:${ref}