From 73461a822c307db24bc58d2d2104f38a3646ee59 Mon Sep 17 00:00:00 2001 From: Grigory Bakunov Date: Sun, 11 Apr 2021 09:55:31 +0300 Subject: [PATCH] move to github.actor instead of The Greatest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It'll be easeier to test and work on it with some abstraction on top of 🤣umputun --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e5a0f30..e9bda35 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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}