This commit is contained in:
@@ -27,7 +27,7 @@ jobs:
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.GITEA_TOKEN }}
|
||||
password: ${{ secrets.CI_TOKEN }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
@@ -40,13 +40,13 @@ jobs:
|
||||
|
||||
- name: Update image tag in gitops repo
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
CI_TOKEN: ${{ secrets.CI_TOKEN }}
|
||||
SHA: ${{ steps.tag.outputs.sha }}
|
||||
run: |
|
||||
git config --global user.email "ci@idealconnected.com"
|
||||
git config --global user.name "Gitea CI"
|
||||
git clone \
|
||||
"https://${{ gitea.actor }}:${GITEA_TOKEN}@${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.GITOPS_REPO }}.git" \
|
||||
"https://${{ gitea.actor }}:${CI_TOKEN}@${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.GITOPS_REPO }}.git" \
|
||||
/tmp/gitops
|
||||
cd /tmp/gitops
|
||||
sed -i \
|
||||
|
||||
Reference in New Issue
Block a user