Merge pull request #675 from CartoDB/fix_wrong_pr_tags
update branch variable
This commit is contained in:
commit
206f689a74
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -62,7 +62,7 @@ jobs:
|
||||
|
||||
- name: Build image
|
||||
run: |
|
||||
BRANCH_NAME=${GITHUB_REF#refs/heads/}
|
||||
BRANCH_NAME=${GITHUB_HEAD_REF#refs/heads/}
|
||||
BRANCH_NAME=${BRANCH_NAME//\//-}
|
||||
echo "Building sql-api image from branch: $BRANCH_NAME, commit: ${GITHUB_SHA::7}..."
|
||||
docker build -f private/Dockerfile --label="org.opencontainers.image.created=$(date --rfc-3339=seconds)" --label=org.opencontainers.image.revision=${GITHUB_SHA} -t gcr.io/$ARTIFACTS_PROJECT_ID/sql-api:${BRANCH_NAME} -t gcr.io/$ARTIFACTS_PROJECT_ID/sql-api:${GITHUB_SHA::7} -t gcr.io/$ARTIFACTS_PROJECT_ID/sql-api:${BRANCH_NAME}--${GITHUB_SHA::7} .
|
||||
|
Loading…
Reference in New Issue
Block a user