mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
ci: Fix paths for update image version
This commit is contained in:
@@ -32,13 +32,13 @@ jobs:
|
|||||||
token: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
|
token: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
|
||||||
- name: Update image version
|
- name: Update image version
|
||||||
run: |
|
run: |
|
||||||
sed -i -r "s/(image:.*:).*/\1${{ inputs.image_version }}/" docker/stack-config/${{ inputs.target }}/${{ inputs.application }}.yaml
|
sed -i -r "s/(image:.*:).*/\1${{ inputs.image_version }}/" docker/${{ inputs.target }}/stack-config/${{ inputs.application }}.yaml
|
||||||
- name: setup git config
|
- name: setup git config
|
||||||
run: |
|
run: |
|
||||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
git config user.name "github-actions[bot]"
|
git config user.name "github-actions[bot]"
|
||||||
- name: Save modified variable file
|
- name: Save modified variable file
|
||||||
run: |
|
run: |
|
||||||
git add docker/stack-config/${{ inputs.target }}/${{ inputs.application}}.yaml
|
git add docker/${{ inputs.target }}/stack-config/${{ inputs.application}}.yaml
|
||||||
git diff-index --quiet HEAD || git commit -m "chore: Change ${{ inputs.application }}_image_version to ${{ inputs.image_version }}"
|
git diff-index --quiet HEAD || git commit -m "chore: Change ${{ inputs.application }}_image_version to ${{ inputs.image_version }}"
|
||||||
git push
|
git push
|
||||||
Reference in New Issue
Block a user