style: rename github steps
Some checks failed
Check / check (push) Failing after 0s

This commit is contained in:
2025-05-17 03:08:52 -04:00
parent 4f9dee1e27
commit e20156a2de
3 changed files with 13 additions and 19 deletions

View File

@ -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 \