mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-18 00:56:51 +02:00
chore: Checkout correct repository
This commit is contained in:
@@ -22,6 +22,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: 2martens/cloud-configuration
|
||||||
|
ref: main
|
||||||
|
token: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
|
||||||
- name: Update image version
|
- name: Update image version
|
||||||
run: |
|
run: |
|
||||||
mkdir $HOME/bin
|
mkdir $HOME/bin
|
||||||
@@ -29,6 +33,10 @@ jobs:
|
|||||||
pwd && ls
|
pwd && ls
|
||||||
sed -i -r "s/(tag:).*/\1\ \"${{ inputs.image_version }}\"/" argocd/${{ inputs.application }}/${{ inputs.target }}/overwrite_values.yaml
|
sed -i -r "s/(tag:).*/\1\ \"${{ inputs.image_version }}\"/" argocd/${{ inputs.application }}/${{ inputs.target }}/overwrite_values.yaml
|
||||||
cd argocd/${{ inputs.application }}/${{ inputs.target }} && $HOME/bin/yq '. *= load("overwrite_values.yaml")' default_values.yaml > values.yaml
|
cd argocd/${{ inputs.application }}/${{ inputs.target }} && $HOME/bin/yq '. *= load("overwrite_values.yaml")' default_values.yaml > values.yaml
|
||||||
|
- name: setup git config
|
||||||
|
run: |
|
||||||
|
git config user.name "GitHub Actions Bot"
|
||||||
|
git config user.email "<>"
|
||||||
- name: Save modified variable file
|
- name: Save modified variable file
|
||||||
run: |
|
run: |
|
||||||
git add argocd/${{ inputs.application}}/${{ inputs.target }}/*
|
git add argocd/${{ inputs.application}}/${{ inputs.target }}/*
|
||||||
|
|||||||
Reference in New Issue
Block a user