Fix docker login token permissions
CI/CD Pipeline / test (push) Successful in 11s
CI/CD Pipeline / scan (push) Successful in 14s
CI/CD Pipeline / build-push-deploy (push) Failing after 5s

This commit is contained in:
Khalil
2026-07-04 10:58:34 +00:00
parent 3b6ce07db8
commit 042064458b
+4 -1
View File
@@ -43,6 +43,9 @@ jobs:
build-push-deploy: build-push-deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: scan needs: scan
permissions:
packages: write
contents: read
steps: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -50,7 +53,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Log in to Gitea Container Registry - name: Log in to Gitea Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login git.khalilaliouich.com -u ${{ github.actor }} --password-stdin run: echo "${{ gitea.token }}" | docker login git.khalilaliouich.com -u ${{ github.actor }} --password-stdin
- name: Build and Push API - name: Build and Push API
run: | run: |