ci(#3): 💄 Fix registry login
All checks were successful
CI/CD Pipeline / build-and-deploy (push) Successful in 51s

This commit is contained in:
Daniel Sy 2025-03-28 12:52:17 +01:00
parent 721cc90331
commit 71b6810ae7
Signed by: Daniel.Sy
GPG key ID: 1F39A8BBCD2EE3D3

View file

@ -17,10 +17,10 @@ jobs:
- name: Build and Push Docker Image - name: Build and Push Docker Image
run: | run: |
docker build -t loic:${{ github.sha }} . docker build -t loic:${{ github.sha }} .
echo "$FORGEJO_API_TOKEN" | docker login -u {{ .Identity }} --password-stdin ${{ env.FORGEJO_BASE_URL }}
docker tag loic:${{ github.sha }} ${{ env.FORGEJO_BASE_URL }}/{{ .Identity }}/loic:${{ github.sha }} docker tag loic:${{ github.sha }} ${{ env.FORGEJO_BASE_URL }}/{{ .Identity }}/loic:${{ github.sha }}
docker login -u {{ .Identity }} --password-stdin ${{ secret.PASSWORD }} docker login -u {{ .Identity }} --password-stdin ${{ secret.PASSWORD }}
docker push ${{ env.FORGEJO_BASE_URL }}/{{ .Identity }}/loic:${{ github.sha }} docker push ${{ env.FORGEJO_BASE_URL }}/{{ .Identity }}/loic:${{ github.sha }}
# - name: Update Deployment Manifest # - name: Update Deployment Manifest
# run: | # run: |
# sed -i "s|image: .*|image: ${{ env.FORGEJO_BASE_URL }}/{{ .Identity }}/loic:${{ github.sha }}|" k8s/deployment.yaml # sed -i "s|image: .*|image: ${{ env.FORGEJO_BASE_URL }}/{{ .Identity }}/loic:${{ github.sha }}|" k8s/deployment.yaml