Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

permissions:
contents: read
packages: write # --> Allows Github Actions to upload to the Container Registery

jobs:
lint-and-typecheck:
Expand Down Expand Up @@ -37,6 +38,12 @@ jobs:
needs: [lint-and-typecheck]
steps:
- uses: actions/checkout@v4
- name: Login to Container Registery
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -45,8 +52,8 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
push: false # We only want to test the build, not push it to a registry yet
tags: systemcraft-web:latest
push: ${{ github.event_name != 'pull_request' }}
tags: ghcr.io/${{ github.repository }}/systemcraft-web:latest
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
Expand Down