Skip to content

Commit

Permalink
fix(ci): copy skopeos default container policy
Browse files Browse the repository at this point in the history
  • Loading branch information
uulm-janbaudisch committed Jan 26, 2025
1 parent 709da27 commit 0add9eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/Container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ jobs:
uses: DeterminateSystems/magic-nix-cache-action@v9
- name: Build
run: nix build -L .#container
- name: Container policy
run: |
nix build --out-link skopeo nixpkgs#skopeo
mkdir -p $HOME/.config/containers
cp skopeo/etc/containers/default-policy.json $HOME/.config/containers/policy.json
- name: Login
run: nix run nixpkgs#skopeo -- login $REGISTRY --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }}
- name: Push
Expand Down

0 comments on commit 0add9eb

Please sign in to comment.