From 4ed5be617102ff8b123d941910da45d7ec0f80ca Mon Sep 17 00:00:00 2001 From: Marvin Preuss Date: Thu, 19 Sep 2024 15:11:00 +0200 Subject: [PATCH] ci: first try to push something --- .github/workflows/release.yml | 14 ++++++++++++++ .github/workflows/{ci.yml => test.yml} | 4 +++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml rename .github/workflows/{ci.yml => test.yml} (86%) 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