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