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
|
- name: Create image
|
||||||
run: |
|
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
|
- uses: https://github.com/Frozen-Tapestry/container-action@v1
|
||||||
with:
|
with:
|
||||||
|
|
@ -46,24 +47,24 @@ jobs:
|
||||||
|
|
||||||
push: true
|
push: true
|
||||||
|
|
||||||
- name: Log into registry
|
# - name: Log into registry
|
||||||
run: >-
|
# run: >-
|
||||||
podman login
|
# podman login
|
||||||
--log-level=debug
|
# --log-level=debug
|
||||||
--authfile ~/.config/containers/auth.json
|
# --authfile ~/.config/containers/auth.json
|
||||||
--username "${{ forge.actor }}"
|
# --username "${{ forge.actor }}"
|
||||||
--password "${{ forge.token }}"
|
# --password "${{ forge.token }}"
|
||||||
${{ env.registry }}
|
# ${{ env.registry }}
|
||||||
|
|
||||||
- name: __DEBUG__
|
# - name: __DEBUG__
|
||||||
run: |
|
# run: |
|
||||||
echo "~/.config/containers/auth.json"
|
# echo "~/.config/containers/auth.json"
|
||||||
[ -f ~/.config/containers/auth.json ] && cat ~/.config/containers/auth.json || echo "file doesn't exist"
|
# [ -f ~/.config/containers/auth.json ] && cat ~/.config/containers/auth.json || echo "file doesn't exist"
|
||||||
|
|
||||||
- name: Push image
|
# - name: Push image
|
||||||
run: >-
|
# run: >-
|
||||||
podman push
|
# podman push
|
||||||
--log-level=debug
|
# --log-level=debug
|
||||||
--authfile ~/.config/containers/auth.json
|
# --authfile ~/.config/containers/auth.json
|
||||||
localhost/default:latest
|
# localhost/default:latest
|
||||||
${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }}
|
# ${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue