This commit is contained in:
parent
3e6bc2f763
commit
89b656f802
1 changed files with 9 additions and 2 deletions
11
.github/workflows/build.yaml
vendored
11
.github/workflows/build.yaml
vendored
|
@ -12,9 +12,16 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
- run: set
|
||||
- run: nix build -L .#nixos-runner
|
||||
- run: echo -n "${GITHUB_TOKEN}" | podman login --username ${GITHUB_ACTOR} --password-stdin ghcr.io
|
||||
# - uses: redhat-actions/podman-login@v1
|
||||
# with:
|
||||
# registry: ghcr.io/${{ github.repository_owner }}
|
||||
# username: ${{ github.actor }}
|
||||
# password: ${{ github.token }}
|
||||
- run: echo -n "${PASSWORD}" | podman login --username ${USERNAME} --password-stdin ${REPOSITORY}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
REPOSITORY: ghcr.io/${{ github.repository_owner }}
|
||||
USERNAME: ${{ github.actor }}
|
||||
PASSWORD: ${{ github.token }}
|
||||
- run: podman load --input result | sed -n -e "s/Loaded image:.\\(.*\\)/loaded-image=\\1/p" >> $GITHUB_OUTPUT
|
||||
id: podman-load-image
|
||||
- run: podman images
|
||||
|
|
Loading…
Reference in a new issue