From fd16aeec5bf2ba2d679cfa4c899a96b4eda54b33 Mon Sep 17 00:00:00 2001 From: Eddie Pace Date: Tue, 20 Jan 2026 17:35:57 +0000 Subject: [PATCH 1/2] update actions --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b9a3e4f3..75ce66be 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,13 +15,13 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: ref: ${{ github.head_ref }} fetch-depth: 1 - name: Set up node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: 22 From 6ece30de9abc80e3aeb624098fed7c3b2889864d Mon Sep 17 00:00:00 2001 From: Eddie Pace Date: Tue, 20 Jan 2026 17:36:09 +0000 Subject: [PATCH 2/2] first draft docker image --- .github/workflows/docker-publish.yml | 62 ++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 .github/workflows/docker-publish.yml diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml new file mode 100644 index 00000000..f58733c6 --- /dev/null +++ b/.github/workflows/docker-publish.yml @@ -0,0 +1,62 @@ +name: Edpacca GHCR + +on: + push: + branches: + - main + pull_request: + branches: + - main + +permissions: + contents: read + packages: write + +env: + REGISTRY: ghcr.io + IMAGE_NAME: edpacca/edpaccapp + +jobs: + docker: + name: Build & Push + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v6 + with: + ref: main + fetch-depth: 1 + + - name: Docker Build + uses: docker/setup-buildx-action@v3 + + - name: Docker Meta + id: meta + uses: docker/metadata-action@v5 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=sha,format=long + type=raw,value=latest + labels: + org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }} + org.opencontainers.image.revision=${{ github.sha }} + org.opencontainers.image.title=${{ github.repository }} + + - name: Auth GHCR + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build & Push + uses : docker/build-push-action@v6 + with: + context: . + file: ./docker/dockerfile + platforms: linux/amd64 + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + push: ${{ github.event_name != 'pull_request' }}