Skip to content

Fix deploy auth: use HTTP header instead of URL credentials #2

Fix deploy auth: use HTTP header instead of URL credentials

Fix deploy auth: use HTTP header instead of URL credentials #2

Workflow file for this run

name: Deploy to Clever Cloud
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Push to Clever Cloud
env:
CLEVER_TOKEN: ${{ secrets.CLEVER_TOKEN }}
CLEVER_SECRET: ${{ secrets.CLEVER_SECRET }}
run: |
CREDENTIALS=$(echo -n "${CLEVER_TOKEN}:${CLEVER_SECRET}" | base64)
git -c http.extraHeader="Authorization: Basic ${CREDENTIALS}" push https://push-n3-par-clevercloud-customers.services.clever-cloud.com/app_e18aa250-0ebc-4a2d-ba9f-1383450de63c.git main:master --force