diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index a72fa1e..43b10f5 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -18,5 +18,14 @@ jobs: - uses: actions/checkout@main - uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/magic-nix-cache-action@main + + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + - name: Build container image - run: nix build .#container \ No newline at end of file + run: nix build .#container + + - name: Push container image + #if: ${{ github.ref_name == 'main' || github.ref_type == 'tag' }} + run: | + skopeo copy --dest-creds="${{ github.repository_owner }}:${{ github.token }}" docker-archive:./result docker://ghcr.io/javierhonduco/lightswitch:${{ github.sha }} \ No newline at end of file