Skip to content

Commit

Permalink
revert branch condition
Browse files Browse the repository at this point in the history
  • Loading branch information
fwilhe committed Oct 29, 2024
1 parent 0fdaa7f commit 470c5c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,20 +135,20 @@ jobs:
run: echo "Image pushed to ${{ steps.push-to-ghcr.outputs.digest }}"

- name: Get OIDC token
if: ${{ github.ref == 'ref/head/main' }}
if: ${{ github.event_name != 'pull_request' }}
id: get-token
run: |
IDTOKEN=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=glvd" | jq -r '.value')
echo "idToken=${IDTOKEN}" >> $GITHUB_OUTPUT
- uses: azure/k8s-set-context@v4
if: ${{ github.ref == 'ref/head/main' }}
if: ${{ github.event_name != 'pull_request' }}
with:
method: kubeconfig
kubeconfig: "${{ secrets.KUBECONFIG }}"

- name: Deploy the image
if: ${{ github.ref == 'ref/head/main' }}
if: ${{ github.event_name != 'pull_request' }}
run: kubectl --namespace default --token "${{ steps.get-token.outputs.idToken }}" set image deploy/glvd glvd-api=ghcr.io/gardenlinux/glvd-api:latest-linuxamd64_bare@${{ steps.bare.outputs.bare-amd64-digest }}

dependency-submission:
Expand Down

0 comments on commit 470c5c2

Please sign in to comment.