This commit is contained in:
parent
a3066be43e
commit
12a4a85510
4 changed files with 33 additions and 26 deletions
|
|
@ -35,30 +35,27 @@ jobs:
|
|||
run: |
|
||||
nix-build src/default.nix
|
||||
podman load < result
|
||||
|
||||
- name: Log into registry
|
||||
run: |
|
||||
podman login \
|
||||
--log-level=debug \
|
||||
--authfile ~/.config/containers/auth.json \
|
||||
--username "${{ forge.actor }}" \
|
||||
--password "${{ forge.token }}" \
|
||||
${{ env.registry }}
|
||||
|
||||
- uses: ./.forgejo/actions/push_container
|
||||
with:
|
||||
source: ${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }}
|
||||
destination: ${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }}
|
||||
curl --fail -u${{ forge.actor }}:${{ forge.token }} -sS ${{ env.registry }}/v2/token | jq --raw-output '"Authorization: token \(.token)"'
|
||||
|
||||
# - name: Log into registry
|
||||
# run: >-
|
||||
# podman login
|
||||
# --log-level=debug
|
||||
# --authfile ~/.config/containers/auth.json
|
||||
# --username "${{ forge.actor }}"
|
||||
# --password "${{ forge.token }}"
|
||||
# ${{ env.registry }}
|
||||
- name: __DEBUG__
|
||||
run: |
|
||||
echo "~/.config/containers/auth.json"
|
||||
[ -f ~/.config/containers/auth.json ] && cat ~/.config/containers/auth.json || echo "file doesn't exist"
|
||||
|
||||
# - name: __DEBUG__
|
||||
# run: |
|
||||
# echo "~/.config/containers/auth.json"
|
||||
# [ -f ~/.config/containers/auth.json ] && cat ~/.config/containers/auth.json || echo "file doesn't exist"
|
||||
|
||||
# - name: Push image
|
||||
# run: >-
|
||||
# podman push
|
||||
# --log-level=debug
|
||||
# --authfile ~/.config/containers/auth.json
|
||||
# localhost/default:latest
|
||||
# ${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }}
|
||||
- name: Push image
|
||||
run: >-
|
||||
podman push
|
||||
--log-level=debug
|
||||
--authfile ~/.config/containers/auth.json
|
||||
localhost/default:latest
|
||||
${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue