chore: deps(dockerfile): bump image "gitpod/workspace-full" (#365) #970
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a GitHub Actions workflow named "updatecli" | |
name: updatecli | |
on: | |
# This workflow can be triggered manually | |
workflow_dispatch: | |
# This workflow is scheduled to run once per week (to avoid alert fatigue) | |
# Specifically, it runs every Monday at 8am UTC | |
schedule: | |
- cron: '0 */6 * * *' | |
branches: | |
- spring-security | |
# This workflow is also triggered on every push event | |
push: | |
# This workflow is also triggered on every pull request event | |
pull_request: | |
jobs: | |
# This job is named "updatecli" | |
updatecli: | |
# This job runs on the latest version of Ubuntu | |
runs-on: ubuntu-latest | |
steps: | |
# This step checks out the repository using the checkout action | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# This step installs Updatecli in the runner using the updatecli-action | |
- name: Install Updatecli in the runner | |
uses: updatecli/updatecli-action@v2.59.0 | |
- name: Check environment variables | |
run: | | |
if [[ -z "${JENKINS_USERNAME}" ]] || [[ -z "${JENKINS_API_TOKEN}" ]]; then | |
echo "Error: JENKINS_USERNAME and JENKINS_API_TOKEN must be set in the environment." | |
exit 1 | |
fi | |
env: | |
JENKINS_USERNAME: ${{ secrets.JENKINS_USERNAME }} | |
JENKINS_API_TOKEN: ${{ secrets.JENKINS_API_TOKEN }} | |
# This step runs Updatecli in Dry Run mode | |
# It uses the "diff" command of updatecli with the specified config and values files | |
# The GitHub token is passed as an environment variable | |
- name: Run Updatecli in Dry Run mode | |
run: | | |
updatecli diff --config ./updatecli/updatecli.d --values ./updatecli/values.github-action.yaml | |
env: | |
UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
JENKINS_USERNAME: ${{ secrets.JENKINS_USERNAME }} | |
JENKINS_API_TOKEN: ${{ secrets.JENKINS_API_TOKEN }} | |
# This step runs Updatecli in Apply mode, but only if the current branch is 'main' | |
# It uses the "apply" command of updatecli with the specified config and values files | |
# The GitHub token is passed as an environment variable | |
- name: Run Updatecli in Apply mode | |
if: github.ref == 'refs/heads/spring-security' | |
run: | | |
updatecli apply --config ./updatecli/updatecli.d --values ./updatecli/values.github-action.yaml | |
env: | |
UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
JENKINS_USERNAME: ${{ secrets.JENKINS_USERNAME }} | |
JENKINS_API_TOKEN: ${{ secrets.JENKINS_API_TOKEN }} |