Skip to content

Commit

Permalink
fix: branch name on gitlab webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminpilia authored Jul 12, 2024
1 parent 554dfbe commit 71d8052
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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"
"https://gitlab.com/api/v4/projects/58117805/trigger/pipeline"

0 comments on commit 71d8052

Please sign in to comment.