Merge pull request #31 from ox-eye/OX-5195_-_add_retries_to_scm_scan_py #41
Workflow file for this run
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
--- | |
name: Create Release | |
on: | |
push: | |
tags: ['*'] | |
jobs: | |
build-docker-images: | |
name: Build Docker Images | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- image: oxeye-scan | |
context: images | |
dockerfile: images/Dockerfile.oxeye-scan | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Docker build | |
uses: ./.github/actions/docker-build | |
with: | |
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} | |
registry_token: ${{ secrets.GITHUB_TOKEN }} | |
image: ${{ matrix.image }} | |
dockerfile: ${{ matrix.dockerfile }} | |
context: ${{ matrix.context }} | |
push_latest: 'false' | |
update-github-actions: | |
name: Update Image Version in the related action.yaml files | |
needs: build-docker-images | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Update action | |
uses: fjogeleit/yaml-update-action@main | |
with: | |
branch: main | |
createPR: false | |
token: ${{ secrets.OXEYE_ACTIONS_TOKEN}} | |
changes: | | |
{ | |
"oxeye-scan/action.yaml": { | |
"runs.image": "docker://ghcr.io/ox-eye/github-actions/oxeye-scan:${{ github.ref_name }}" | |
}, | |
"oxeye-scan/gitlab-ci.yml": { | |
"oxeye_scan.image.name": "ghcr.io/ox-eye/github-actions/oxeye-scan:${{ github.ref_name }}" | |
} | |
} | |
message: '[skip ci] Update Docker Image Version for GitHub and GitLab actions to ${{ github.ref_name }}' |