Update .forgejo/workflows/build.yml
This commit is contained in:
parent
32f56ac1ab
commit
0f30421a60
1 changed files with 15 additions and 8 deletions
|
@ -38,6 +38,21 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||
|
||||
- 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: https://github.com/redhat-actions/podman-login@4934294ad0449894bcd1e9f191899d7292469603 # master
|
||||
with:
|
||||
registry: rievo.dev
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
auth_file_path: /run/containers/0/auth.json
|
||||
|
||||
# This is optional, but if you see that your builds are way too big for the runners, you can enable this by uncommenting the following lines:
|
||||
# - name: Maximize build space
|
||||
# uses: ublue-os/remove-unwanted-software@517622d6452028f266b7ba4cc9a123b5f58a6b53 # v7
|
||||
|
@ -139,14 +154,6 @@ jobs:
|
|||
# podman tag "${{ env.IMAGE_NAME }}:latest" "${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:latest"
|
||||
# podman push "${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:latest"
|
||||
|
||||
- name: Log in to the GitHub Container registry
|
||||
uses: https://github.com/redhat-actions/podman-login@4934294ad0449894bcd1e9f191899d7292469603 # master
|
||||
with:
|
||||
registry: rievo.dev
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
auth_file_path: /run/containers/0/auth.json
|
||||
|
||||
# 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
|
||||
# - name: Lowercase Registry
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue