feat: update permissions on alloy config files #67
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: flake | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
env: | |
CACHIX_BINARY_CACHE: altf4llc-os | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: cachix/install-nix-action@v27 | |
with: | |
enable_kvm: true | |
- uses: cachix/cachix-action@v15 | |
with: | |
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
name: ${{ env.CACHIX_BINARY_CACHE }} | |
- uses: actions/checkout@v4 | |
- run: nix develop -c just check | |
build: | |
needs: | |
- check | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
strategy: | |
matrix: | |
profile: | |
- gc-fwd | |
- ecs-node | |
- actions-runner | |
steps: | |
- uses: cachix/install-nix-action@v27 | |
with: | |
enable_kvm: true | |
- uses: cachix/cachix-action@v15 | |
with: | |
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
name: ${{ env.CACHIX_BINARY_CACHE }} | |
- uses: actions/checkout@v4 | |
- run: nix develop -c just build "${{ matrix.profile }}" | |
- uses: aws-actions/configure-aws-credentials@v4 | |
if: github.ref == 'refs/heads/main' | |
with: | |
aws-region: us-west-2 | |
role-to-assume: arn:aws:iam::677459762413:role/altf4llc-gha-vms-nix | |
- if: github.ref == 'refs/heads/main' | |
run: aws sts get-caller-identity | |
- if: github.ref == 'refs/heads/main' | |
run: nix develop -c just publish-ami "${{ matrix.profile }}" |