From da6e0b1141a0f4e39bbbf3761e6a4ce172f6b814 Mon Sep 17 00:00:00 2001 From: Yuri Shkuro Date: Mon, 25 Dec 2023 12:10:12 -0500 Subject: [PATCH] Fix branch name Signed-off-by: Yuri Shkuro --- .../{jaeger-dockerimage.yml => build-and-publish.yml} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename .github/workflows/{jaeger-dockerimage.yml => build-and-publish.yml} (96%) diff --git a/.github/workflows/jaeger-dockerimage.yml b/.github/workflows/build-and-publish.yml similarity index 96% rename from .github/workflows/jaeger-dockerimage.yml rename to .github/workflows/build-and-publish.yml index 793f368..e122dfd 100644 --- a/.github/workflows/jaeger-dockerimage.yml +++ b/.github/workflows/build-and-publish.yml @@ -4,7 +4,7 @@ on: tags: - '**' branches: - - master + - main pull_request: paths: - .github/workflows/jaeger-dockerimage.yml @@ -47,7 +47,7 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - name: Build and push Docker image + - name: Build and maybe push Docker image uses: docker/build-push-action@v5 with: push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}