From da6a65ab3efd4b250f89e497a20084f88fd89944 Mon Sep 17 00:00:00 2001 From: sst Date: Fri, 21 Mar 2025 23:34:20 +0000 Subject: [PATCH] Update .forgejo/workflows/build.yml --- .forgejo/workflows/build.yml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 5bfac7f..f213f7f 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -133,21 +133,9 @@ jobs: # username: ${{ github.actor }} # password: ${{ secrets.GITHUB_TOKEN }} - - # workaround for https://github.com/redhat-actions/podman-login/issues/42 since the docker config from the host doesn't come up to the container - - name: Workaround open podman-login action issue - env: - auth: "{ \"auths\": {} }" + - name: Log in to the Container registry run: | - mkdir -p $HOME/.docker - echo $auth > $HOME/.docker/config.json - - - name: Log in to the GitHub Container registry - uses: https://github.com/redhat-actions/podman-login@v1 - with: - registry: "rievo.dev" - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + echo "${{ secrets.GITHUB_TOKEN }}" | sudo podman login rievo.dev -u ${{ github.actor }} --password-stdin # Workaround bug where capital letters in your GitHub username make it impossible to push to GHCR. # https://github.com/macbre/push-to-ghcr/issues/12