Compare commits
No commits in common. "255336279595de9100ebe3e005f6cc50c5edbeb9" and "89b656f8027b1696b1f1cf7eaeb99090c0088d83" have entirely different histories.
2553362795
...
89b656f802
2 changed files with 10 additions and 19 deletions
|
@ -21,15 +21,6 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- nix build .#nixos-runner
|
- nix build .#nixos-runner
|
||||||
- nix run .#push-container -- result
|
- nix run .#push-container -- result
|
||||||
- podman load --input result | sed -n -e "s/Loaded image:.\\(.*\\)/\\1/p" > loaded-image
|
|
||||||
- cat loaded-image
|
|
||||||
- podman images
|
|
||||||
- podman tag "$(<loaded-image)" "${REGISTRY}/${REPOSITORY}:${GITHUB_RUN_NUMBER}-${GITHUB_SHA:0:8}"
|
|
||||||
- podman tag "$(<loaded-image)" "${REGISTRY}/${REPOSITORY}:latest"
|
|
||||||
- podman images
|
|
||||||
- podman push "${REGISTRY}/${REPOSITORY}:${GITHUB_RUN_NUMBER}-${GITHUB_SHA:0:8}"
|
|
||||||
- podman push "${REGISTRY}/${REPOSITORY}:latest"
|
|
||||||
- podman logout "${REGISTRY}"
|
|
||||||
settings:
|
settings:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: jcollie/nixos-runner
|
repository: jcollie/nixos-runner
|
||||||
|
|
20
.github/workflows/build.yaml
vendored
20
.github/workflows/build.yaml
vendored
|
@ -12,16 +12,16 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: set
|
- run: set
|
||||||
- run: nix build -L .#nixos-runner
|
- run: nix build -L .#nixos-runner
|
||||||
- uses: redhat-actions/podman-login@v1
|
# - uses: redhat-actions/podman-login@v1
|
||||||
with:
|
# with:
|
||||||
registry: ghcr.io/${{ github.repository_owner }}
|
# registry: ghcr.io/${{ github.repository_owner }}
|
||||||
username: ${{ github.actor }}
|
# username: ${{ github.actor }}
|
||||||
password: ${{ github.token }}
|
# password: ${{ github.token }}
|
||||||
# - run: echo -n "${PASSWORD}" | podman login --username ${USERNAME} --password-stdin ${REPOSITORY}
|
- run: echo -n "${PASSWORD}" | podman login --username ${USERNAME} --password-stdin ${REPOSITORY}
|
||||||
# env:
|
env:
|
||||||
# REPOSITORY: ghcr.io/${{ github.repository_owner }}
|
REPOSITORY: ghcr.io/${{ github.repository_owner }}
|
||||||
# USERNAME: ${{ github.actor }}
|
USERNAME: ${{ github.actor }}
|
||||||
# PASSWORD: ${{ github.token }}
|
PASSWORD: ${{ github.token }}
|
||||||
- run: podman load --input result | sed -n -e "s/Loaded image:.\\(.*\\)/loaded-image=\\1/p" >> $GITHUB_OUTPUT
|
- run: podman load --input result | sed -n -e "s/Loaded image:.\\(.*\\)/loaded-image=\\1/p" >> $GITHUB_OUTPUT
|
||||||
id: podman-load-image
|
id: podman-load-image
|
||||||
- run: podman images
|
- run: podman images
|
||||||
|
|
Loading…
Reference in a new issue