feat: initial commit
This commit is contained in:
commit
2115272632
3 changed files with 198 additions and 0 deletions
20
.github/workflows/build.yml
vendored
Normal file
20
.github/workflows/build.yml
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
name: Build and Push docker image
|
||||
on:
|
||||
workflow_dispatch:
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
buildAndPush:
|
||||
runs-on: [ nix ]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Nix build
|
||||
run: nix build --extra-experimental-features "flakes nix-command" .
|
||||
- name: Setup skopeo
|
||||
run: |
|
||||
curl -o /etc/containers/policy.json --create-dirs https://raw.githubusercontent.com/containers/skopeo/refs/heads/main/default-policy.json
|
||||
- name: Push Image
|
||||
run: skopeo copy --dest-password "$UPLOAD_TOKEN" --dest-username "$USERNAME" docker-archive://$(realpath result) docker://git.tami.moe/tamipes/nix
|
||||
env:
|
||||
USERNAME: tamipes
|
||||
UPLOAD_TOKEN: {{ secrets.UPLOAD_TOKEN }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue