diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..dc28a5d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,14 @@ +name: "test" +on: + push: + tags: + - '**' +jobs: + ci: + 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 }} diff --git a/.github/workflows/ci.yml b/.github/workflows/test.yml similarity index 86% rename from .github/workflows/ci.yml rename to .github/workflows/test.yml index e69be59..0463f30 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/test.yml @@ -1,7 +1,9 @@ -name: "ci" +name: "test" on: pull_request: push: + tags-ignore: + - '**' jobs: ci: runs-on: ubuntu-latest