2024-09-19 15:14:20 +02:00
|
|
|
name: "release"
|
2024-09-19 15:11:00 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- '**'
|
|
|
|
jobs:
|
2024-09-19 15:24:23 +02:00
|
|
|
release:
|
2024-09-19 15:11:00 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: cachix/install-nix-action@v27
|
|
|
|
- run: nix develop . -c golangci-lint run --enable-all
|
|
|
|
- run: nix develop . -c go test -v -race ./...
|
|
|
|
- run: nix develop . -c skopeo --insecure-policy copy --dest-username ${{ github.actor }} --dest-password ${{ secrets.GITHUB_TOKEN }} docker-archive://$(nix build .#docker --print-out-paths) docker://ghrc.io/xsteadfastx/caddy-log-exporter:${{ github.ref_name }}
|