Skip to content

Commit

Permalink
fix(ci): Update the reference to the gitlab api token (#98)
Browse files Browse the repository at this point in the history
* fix(ci): Update the reference to the gitlab api token

* Fix reference to GitLab API token (#99)
  • Loading branch information
sasa-tomic committed Jan 23, 2024
1 parent 6d81eee commit fb5c3dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/bazel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
run: sudo rm -rf ~/.cache/bazel/*
- name: Set GIT_HASH variable
run: |
set -eExou pipefail
# Set GIT_HASH variable based on the type of GitHub reference
if [[ "$GITHUB_REF_TYPE" == "tag" ]]; then
echo "GIT_HASH=$GITHUB_REF_NAME" >> "$GITHUB_ENV" # Embed tag name as GIT_HASH
Expand Down Expand Up @@ -78,6 +79,8 @@ jobs:
bazel query --noshow_progress 'kind("oci_push", ...)' | xargs -I_target bazel run _target -- --tag ${GITHUB_SHA}
- name: Update k8s deployments
if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/container') || (github.ref == 'refs/heads/main') }}
env:
GITLAB_API_TOKEN: ${{ secrets.GITLAB_API_TOKEN }}
run: |
set -eExou pipefail
Expand Down

0 comments on commit fb5c3dc

Please sign in to comment.