This commit is contained in:
parent
0167a6389a
commit
22ba8a37dc
1 changed files with 21 additions and 20 deletions
|
|
@ -33,7 +33,8 @@ jobs:
|
|||
|
||||
- name: Create image
|
||||
run: |
|
||||
nix-build src/default.nix | podman load
|
||||
nix-build src/default.nix
|
||||
podman load < result
|
||||
|
||||
- uses: https://github.com/Frozen-Tapestry/container-action@v1
|
||||
with:
|
||||
|
|
@ -46,24 +47,24 @@ jobs:
|
|||
|
||||
push: true
|
||||
|
||||
- name: Log into registry
|
||||
run: >-
|
||||
podman login
|
||||
--log-level=debug
|
||||
--authfile ~/.config/containers/auth.json
|
||||
--username "${{ forge.actor }}"
|
||||
--password "${{ forge.token }}"
|
||||
${{ env.registry }}
|
||||
# - 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