From d44c743c01ad6f437eaeb9059cf3cd1e67befdbe Mon Sep 17 00:00:00 2001 From: Jagrit Thapar Date: Sat, 7 Sep 2024 09:49:08 +0530 Subject: [PATCH] trigger build on test branch --- .gitea/workflows/build.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 16e7771..bdb6ad2 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -3,6 +3,7 @@ on: push: branches: - main + - gitea_actions jobs: build-and-push: @@ -21,13 +22,12 @@ jobs: - name: Generate tag for the image run: | SHA_TAG=${CI_COMMIT_SHA::5} - REPO_NAME=$(basename $CI_REPOSITORY) - IMAGE_TAG_SHA="${{ secrets.CR_endpoint }}/${{ secrets.CR_username }}/${REPO_NAME}:${SHA_TAG}" -# IMAGE_TAG_LATEST="${{ secrets.CR_endpoint }}/${{ secrets.CR_username }}/${REPO_NAME}:latest" + IMAGE_TAG_SHA="${{ secrets.CR_endpoint }}/${{ secrets.CR_username }}/${CI_PROJECT_NAME}:${SHA_TAG}" +# IMAGE_TAG_LATEST="${{ secrets.CR_endpoint }}/${{ secrets.CR_username }}/${CI_PROJECT_NAME}:latest" - name: Build container image - run: docker build -t $IMAGE_TAG_SHA . # -t $IMAGE_TAG_LATEST . + run: docker buildx -t $IMAGE_TAG_SHA . - name: Push Docker image to Container Registry run: |