Skip to content

Commit

Permalink
fix: push manifests, not images
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Volosatovs <[email protected]>
  • Loading branch information
rvolosatovs committed Aug 31, 2023
1 parent dd1b9ed commit ac7006d
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ jobs:

oci-linux:
runs-on: ubuntu-22.04
if: ${{ github.event_name != 'pull_request' }}
permissions:
packages: write
needs:
Expand All @@ -259,18 +260,15 @@ jobs:
with:
cachixAuthToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- uses: docker/login-action@v2
if: ${{ github.event_name != 'pull_request' }}
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: nix run -L --show-trace --override-input 'nixify' '.' './examples/rust-hello#build-rust-hello-oci' rust-hello
- run: nix profile install --inputs-from . 'nixpkgs#buildah'
if: ${{ github.event_name != 'pull_request' }}
- run: buildah push --all --format 'v2s2' rust-hello docker://ghcr.io/${{ github.repository_owner }}/nixify:rust-hello-${{ github.sha }}
if: ${{ github.event_name != 'pull_request' }}
- run: docker run ghcr.io/${{ github.repository_owner }}/nixify:rust-hello-${{ github.sha }}
if: ${{ github.event_name != 'pull_request' }}
- run: |
nix run -L --show-trace --override-input 'nixify' '.' './examples/rust-hello#build-rust-hello-oci' rust-hello
nix profile install --inputs-from . 'nixpkgs#buildah'
buildah manifest push --all --format 'v2s2' rust-hello docker://ghcr.io/${{ github.repository_owner }}/nixify:rust-hello-${{ github.sha }}
docker run ghcr.io/${{ github.repository_owner }}/nixify:rust-hello-${{ github.sha }}
test-linux:
runs-on: ubuntu-22.04
Expand Down

0 comments on commit ac7006d

Please sign in to comment.