From 71d805240941207298b879fbde38b1615d81fcaa Mon Sep 17 00:00:00 2001 From: benjaminpilia Date: Fri, 12 Jul 2024 15:11:13 +0200 Subject: [PATCH] fix: branch name on gitlab webhook --- .github/workflows/build_and_deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 80d6384..cab5a9c 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -9,7 +9,7 @@ on: jobs: build-and-push: - environment: ${{ github.ref_name == 'main' && 'prod' || 'staging' }} + if: github.ref_name == 'dev' name: Build and push from ${{ github.ref_name }}/${{ github.sha }} runs-on: ubuntu-latest env: @@ -46,8 +46,8 @@ jobs: run: | curl --request POST \ --form token=${{ secrets.GITLAB_CI_TOKEN }} \ - --form ref=feat_albert_api \ + --form ref=main \ --form "variables[docker_image_tag]=latest" \ --form "variables[application_to_deploy]=albert-api" \ --form "variables[deployment_environment]=dev" \ - "https://gitlab.com/api/v4/projects/58117805/trigger/pipeline" \ No newline at end of file + "https://gitlab.com/api/v4/projects/58117805/trigger/pipeline"