diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 5e66fe9..50ae04f 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -20,5 +20,4 @@ jobs: with: token: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - name: Check - run: nix flake check + - run: nix flake check diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0c1704b..522fb6a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -18,8 +18,7 @@ jobs: with: token: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - name: check - run: nix flake check + - run: nix flake check release: runs-on: ubuntu-latest @@ -30,8 +29,7 @@ jobs: with: token: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - name: build - run: > + - run: > nix build .#trevstack-linux-amd64 .#trevstack-linux-arm64 @@ -40,8 +38,7 @@ jobs: .#trevstack-darwin-amd64 .#trevstack-darwin-arm64 - - name: release - uses: softprops/action-gh-release@v2 + - uses: softprops/action-gh-release@v2 with: generate_release_notes: true files: |- @@ -56,7 +53,7 @@ jobs: with: token: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - name: set env + - name: Set env run: | TAG=${{ github.ref_name }} VERSION=${TAG#v} @@ -65,20 +62,19 @@ jobs: echo "VERSION=${VERSION}" >> $GITHUB_ENV echo "REGISTRY=${REGISTRY}" >> $GITHUB_ENV - - name: login to github container registry - uses: docker/login-action@v3 + - uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: build & load images + - name: Build & load images run: | nix build .#trevstack-linux-amd64-image && ./result | docker load nix build .#trevstack-linux-arm64-image && ./result | docker load nix build .#trevstack-linux-arm-image && ./result | docker load - - name: push images + - name: Push images run: | docker image tag trevstack:$VERSION-amd64 $REGISTRY/$GITHUB_REPOSITORY:$VERSION-amd64 docker push $REGISTRY/$GITHUB_REPOSITORY:$VERSION-amd64 @@ -89,7 +85,7 @@ jobs: docker image tag trevstack:$VERSION-arm $REGISTRY/$GITHUB_REPOSITORY:$VERSION-arm docker push $REGISTRY/$GITHUB_REPOSITORY:$VERSION-arm - - name: push manifest + - name: Push manifest run: | docker manifest create $REGISTRY/$GITHUB_REPOSITORY:$VERSION \ $REGISTRY/$GITHUB_REPOSITORY:$VERSION-amd64 \ diff --git a/.github/workflows/update.yaml b/.github/workflows/update.yaml index 74cb29d..0742797 100644 --- a/.github/workflows/update.yaml +++ b/.github/workflows/update.yaml @@ -19,15 +19,14 @@ jobs: token: "${{ secrets.CACHIX_AUTH_TOKEN }}" # https://github.com/actions/checkout/issues/13 - - name: set git config + - name: Set git config run: | git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - - name: update - run: nix run .#update + - run: nix run .#update - - name: create pull request + - name: Create pull request id: cpr uses: peter-evans/create-pull-request@v7 with: @@ -35,7 +34,7 @@ jobs: title: update body: automatic update - - name: enable automerge + - name: Enable automerge run: gh pr merge --merge --auto "${{ steps.cpr.outputs.pull-request-number }}" env: GH_TOKEN: ${{ secrets.PAT }}