From 3762a8715af590a372de5110fbdc8992b9f8d901 Mon Sep 17 00:00:00 2001 From: janell-chen <122311137+janell-chen@users.noreply.github.com> Date: Wed, 29 Apr 2026 17:23:55 -0700 Subject: [PATCH 1/3] ci: add release workflow to publish image to GHCR add GitHub Actions workflow to automatically build and release image to ghcr.io --- .github/workflows/release.yml | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..eef5d16 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,44 @@ + name: Release to GHCR + + on: + push: + branches: + - main + + env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} + + jobs: + build-and-push-image: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Log in to the Container registry + uses: docker/login-action@v2 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v4 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=raw,value=latest + + - name: Build and push Docker image + uses: docker/build-push-action@v4 + with: + context: . + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} From 04974b72ce547184b8254617e43fe9308aae079e Mon Sep 17 00:00:00 2001 From: janell-chen <122311137+janell-chen@users.noreply.github.com> Date: Thu, 30 Apr 2026 09:18:07 -0700 Subject: [PATCH 2/3] Update release.yml --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eef5d16..402a4c8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ on: push: branches: - - main + - master env: REGISTRY: ghcr.io @@ -18,7 +18,7 @@ steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v6 - name: Log in to the Container registry uses: docker/login-action@v2 From 77d9cbe0603686c7c330329446841bdc8a1929e9 Mon Sep 17 00:00:00 2001 From: Janell Date: Sat, 16 May 2026 00:46:01 +0000 Subject: [PATCH 3/3] chore: trigger cloud build