1
0
mirror of https://github.com/umputun/reproxy.git synced 2024-11-24 08:12:31 +02:00

Merge pull request #17 from bobuk/patch-1

move to github.actor instead of The Greatest
This commit is contained in:
Umputun 2021-04-11 01:58:27 -05:00 committed by GitHub
commit a1d14d2707
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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}