Skip to content

Merge branch 'main' of github.com:NyCodeGHG/aaas #12

Merge branch 'main' of github.com:NyCodeGHG/aaas

Merge branch 'main' of github.com:NyCodeGHG/aaas #12

Workflow file for this run

name: Build Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: "system-features = nixos-test benchmark big-parallel kvm"
- uses: cachix/cachix-action@v12
with:
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
name: uwumarie
- run: |
OCI_ARCHIVE=$(nix build .#docker --print-out-paths --no-link)
DOCKER_REPOSITORY="docker://ghcr.io/${GITHUB_REPOSITORY,,}"
skopeo copy --dest-creds="$GITHUB_ACTOR:$GITHUB_TOKEN" "docker-archive:${OCI_ARCHIVE}" "$DOCKER_REPOSITORY"
env:
GITHUB_TOKEN: ${{ github.token }}