From 9216a058add5e995053a27b0b1ee8c0c8cd4e93d Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Mon, 2 Sep 2024 20:53:47 +0200 Subject: [PATCH] dd --- .gitea/workflows/build.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index a28a704..4255561 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -25,7 +25,7 @@ jobs: - name: Run hadolint uses: docker://pipelinecomponents/hadolint:0.26.4 with: - args: false ; hadolint Dockerfile + args: hadolint Dockerfile # shellcheck: # https://github.com/marketplace/actions/shellcheck # steps: @@ -39,7 +39,9 @@ jobs: build: steps: - uses: https://github.com/actions/checkout@v4 + if: success() - name: Set up Docker Buildx + if: success() uses: docker/setup-buildx-action@v3 # - name: Login to Docker Hub # uses: docker/login-action@v3 @@ -47,14 +49,17 @@ jobs: # username: ${{ secrets.DOCKERHUB_USERNAME }} # password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Extract repository name + if: success() id: meta run: | echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT - name: Extract branch name + if: success() shell: bash run: echo "REPO_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT id: extract_branch - name: Build and push Docker image + if: success() uses: https://github.com/docker/build-push-action@v5 with: context: .