Update .forgejo/workflows/build.yml
This commit is contained in:
parent
ddf06388d7
commit
8cdcbc3b86
1 changed files with 20 additions and 4 deletions
|
@ -125,11 +125,27 @@ jobs:
|
|||
|
||||
# These `if` statements are so that pull requests for your custom images do not make it publish any packages under your name without you knowing
|
||||
# They also check if the runner is on the default branch so that things like the merge queue (if you enable it), are going to work
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: https://github.com/docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3
|
||||
if: github.event_name != 'pull_request' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
|
||||
# - name: Login to GitHub Container Registry
|
||||
# uses: https://github.com/docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3
|
||||
# if: github.event_name != 'pull_request' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
|
||||
# with:
|
||||
# registry: rievo.dev
|
||||
# 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\": {} }"
|
||||
run: |
|
||||
mkdir -p $HOME/.docker
|
||||
echo $auth > $HOME/.docker/config.json
|
||||
|
||||
- name: Log in to the GitHub Container registry
|
||||
uses: redhat-actions/podman-login@v1
|
||||
with:
|
||||
registry: rievo.dev
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue