Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions templates/.github/workflows/30-release-and-build.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: FranzDiebold/github-env-vars-action@v2

- uses: actions/checkout@v4
with:
fetch-depth: 0
Expand All @@ -37,7 +35,7 @@ jobs:
with:
additional-packages: |
['@semantic-release/changelog', '@semantic-release/git', '@semantic-release/exec']
repository-url: 'https://github.com/${{ github.repository_owner }}/${{ env.CI_REPOSITORY_NAME }}.git'
repository-url: ${{ github.event.repository.clone_url }} # e.g. https://github.com/linkorb/linkorb.git
tag-format: 'v${version}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -46,7 +44,7 @@ jobs:
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/${{ github.repository_owner }}/${{ env.CI_REPOSITORY_NAME }}
ghcr.io/${{ github.repository }}
tags: |
type=sha
type=raw,value=latest,enable={{is_default_branch}}
Expand Down
3 changes: 0 additions & 3 deletions templates/.github/workflows/40-helm.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ jobs:
runs-on: self-hosted

steps:
- name: GitHub Environment Variables Action
uses: FranzDiebold/github-env-vars-action@v2

- uses: actions/checkout@v4
with:
fetch-depth: 0
Expand Down
6 changes: 2 additions & 4 deletions templates/.github/workflows/50-security.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,17 @@ jobs:
name: security
runs-on: ubuntu-latest
steps:
- uses: FranzDiebold/github-env-vars-action@v2

- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- run: docker pull ghcr.io/linkorb/${{ env.CI_REPOSITORY_NAME }}:latest
- run: docker pull ghcr.io/${{ github.repository }}:latest

- uses: aquasecurity/trivy-action@master
with:
image-ref: ghcr.io/linkorb/${{ env.CI_REPOSITORY_NAME }}:latest
image-ref: ghcr.io/${{ github.repository }}:latest
format: 'table'
exit-code: '1'
ignore-unfixed: true
Expand Down
4 changes: 1 addition & 3 deletions templates/.github/workflows/90-cleanup.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ jobs:
packages: write

steps:
- uses: FranzDiebold/github-env-vars-action@v2

- name: Keep last 5 published container images
uses: actions/delete-package-versions@v5
with:
package-name: "${{ env.CI_REPOSITORY_NAME }}"
package-name: ${{ github.event.repository.name }}
package-type: container
min-versions-to-keep: 5
{% if workflow_group in followup_workflows %}
Expand Down