Merge branch 'main' into feat/fetch-services

This commit is contained in:
2024-01-09 20:35:56 +01:00
committed by GitHub
+7 -18
View File
@@ -15,21 +15,10 @@ permissions:
jobs: jobs:
deploy: deploy:
name: Deploy name: Deploy
runs-on: ubuntu-latest uses: 2martens/cloud-configuration/.github/workflows/deploy.yaml@main
steps: with:
- uses: actions/checkout@v4 application: timetable
with: image_version: ${{ inputs.image_version }}
repository: 2martens/cloud-configuration target: ${{ inputs.target }}
- name: Update image version secrets:
run: | ACTIONS_GITHUB_TOKEN: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
mkdir $HOME/bin
wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_arm64 -O $HOME/bin/yq && chmod +x $HOME/bin/yq
sed -i -r "s/(tag:).*/\1\ \"${{ inputs.image_version |}\"/" argocd/timetable/${{ inputs.target }}/overwrite_values.yaml
cd argocd/timetable/${{ inputs.target }} && $HOME/bin/yq '. *= load("overwrite_values.yaml")' default_values.yaml > values.yaml
- name: Save modified variable file
run: |
git add argocd/timetable/${{ inputs.target }}/*
git config --global user.name 'Your Name'
git config --global user.email 'your-username@users.noreply.github.com'
git diff-index --quiet HEAD || git commit -m "chore: Change timetable_image_version to ${{ inputs.image_version }}"
git push