From bd381fbed2e36bf28b079ada7a43d7a70a7107e1 Mon Sep 17 00:00:00 2001 From: Alex Frantz Date: Mon, 7 Sep 2026 14:34:17 -0400 Subject: [PATCH] fix publish --- .gitea/workflows/docker.yml | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/.gitea/workflows/docker.yml b/.gitea/workflows/docker.yml index 8ba5799..aff73cd 100644 --- a/.gitea/workflows/docker.yml +++ b/.gitea/workflows/docker.yml @@ -5,35 +5,26 @@ on: branches: [main] workflow_dispatch: -env: - IMAGE: git.alexav.gg/${{ gitea.repository }} - jobs: build: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v3 + + - name: Build Docker Image + run: | + docker build -t git.alexav.gg/${{ gitea.repository }}:latest . + docker build -t git.alexav.gg/${{ gitea.repository }}:${{ gitea.sha }} . - name: Login to Gitea Registry run: | - echo "${{ secrets.RUNNER_TOKEN }}" \ - | docker login git.alexav.gg -u "${{ gitea.actor }}" --password-stdin + echo "${{ secrets.RUNNER_TOKEN }}" | docker login git.alexav.gg -u ${{ gitea.actor }} --password-stdin - # The Dockerfile has two runnable stages and no sensible default: an - # untargeted build produces the last one (frontend) on its own, which - # then has nothing to proxy /api to. Both get published separately. - - name: Build and push + - name: Push Docker Image run: | - for target in backend frontend; do - docker build --target "$target" \ - -t "$IMAGE:$target-latest" \ - -t "$IMAGE:$target-$GITEA_SHA" . - docker push "$IMAGE:$target-latest" - docker push "$IMAGE:$target-$GITEA_SHA" - done - env: - GITEA_SHA: ${{ gitea.sha }} + docker push git.alexav.gg/${{ gitea.repository }}:latest + docker push git.alexav.gg/${{ gitea.repository }}:${{ gitea.sha }} deploy: needs: build