From fd77bb3c816f0e239b5a28700f60563fb95f1c99 Mon Sep 17 00:00:00 2001 From: Filippo Brizzi Date: Wed, 31 Jan 2024 15:50:57 +0000 Subject: [PATCH] add publish script --- .github/workflows/build.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 391a6fd8..7fa1f26c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,13 +23,14 @@ jobs: filters: | docker: - 'docker/**' + - name: Docker login + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push the image if: steps.filter.outputs.docker == 'true' - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} run: | cd ${{github.workspace}}/docker ./build.sh @@ -45,13 +46,14 @@ jobs: filters: | external: - 'external/**' + - name: Docker login + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push the image if: steps.filter.outputs.external == 'true' - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} run: | cd ${{github.workspace}}/docker ./build_dev.sh