Skip to content

Commit

Permalink
add scheduled workflow
Browse files Browse the repository at this point in the history
- adds a new workflow that is scheduled to run once a week
- create the latest released image again with a new tag using the suffix "weekly"
- that way new CVE fixes from the underlying bitnami baseimage are automatically integrated
  • Loading branch information
dtrai2 committed Dec 19, 2024
1 parent 4166d95 commit 2983f5e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/weekly-build-of-last-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Weekly Image Build of last Release

# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule
on:
# schedule:
# - cron: "5 0 * * 1" # At 00:05 on Monday
pull_request: # just for debugging
types: [opened, synchronize]


jobs:
get-lastest-release:
runs-on: ubuntu-latest
steps:
- name: Get latest tag
run: |
echo 'tag=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }} "https://api.github.com/repos/fkie-cad/Logprep/tags" | jq ".[0].name" | tr -d "v")' >> "GITHUB_OUTPUT"
containerbuild:
uses: ./.github/workflows/container-build.yml
needs: get-lastest-release
secrets: inherit
with:
build-version: ${{ jobs.get-latest-release.outputs.tag }}
tags: "${{ jobs.get-latest-release.outputs.tag }}-weekly"

0 comments on commit 2983f5e

Please sign in to comment.