From 1e6f858426d63063000c6bd4a291b9f49ca810e5 Mon Sep 17 00:00:00 2001 From: ViMaSter Date: Mon, 13 Oct 2025 19:23:50 +0200 Subject: [PATCH] fix: Enables image pushing for any git branch push --- .forgejo/workflows/images.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/images.yml b/.forgejo/workflows/images.yml index a16c626..9fa251a 100644 --- a/.forgejo/workflows/images.yml +++ b/.forgejo/workflows/images.yml @@ -32,20 +32,21 @@ jobs: echo "tag=${{ github.ref_name }}" >> $GITHUB_OUTPUT fi - - name: Build images + - name: Build web image run: | - pushd ./web docker build -f ./Containerfile -t git.hamburg.ccc.de/ccchh/sunders/web:${{ steps.vars.outputs.tag }} . - popd - pushd ./data_handler + working-directory: ./web + + - name: Build data_handler image + run: | docker build -f ./Containerfile -t git.hamburg.ccc.de/ccchh/sunders/data_handler:${{ steps.vars.outputs.tag }} . - popd + working-directory: ./data_handler - name: Push images to Container Registry run: | docker push git.hamburg.ccc.de/ccchh/sunders/web:${{ steps.vars.outputs.tag }} docker push git.hamburg.ccc.de/ccchh/sunders/data_handler:${{ steps.vars.outputs.tag }} - if: github.event_name == 'push' && github.ref_name == 'main' + if: github.event_name == 'push' - name: Update docker-compose.yml image tags run: |