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
47 changes: 47 additions & 0 deletions .github/workflows/ci-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Test GitHub Actions

# yamllint disable-line rule:truthy
on:
push:
branches:
- main
paths:
- .github/workflows/**
pull_request:
branches:
- '**'
paths:
- .github/workflows/**
types:
- opened
- synchronize
- reopened
- ready_for_review

concurrency:
group: ${{ github.workflow }}@${{ github.event.pull_request.head.label || github.head_ref || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
zizmor:
name: Lint GitHub Actions
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Run zizmor
uses: zizmorcore/zizmor-action@45d7276c9ca790aabd705e31ca99c6185c3e76dd # v0.8.1
with:
advanced-security: false
inputs: ./.github/
online-audits: false # https://github.com/zizmorcore/zizmor/issues/1350
persona: pedantic

- name: Run actionlint
uses: rhysd/actionlint@914e7df21a07ef503a81201c76d2b11c789d3fca # v1.7.12
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}@${{ github.event.pull_request.head.label || github.head_ref || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
lint:
name: Test and Lint App
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
required: true
default: dev

concurrency:
group: ${{ github.workflow }}@${{ github.event.pull_request.head.label || github.head_ref || github.ref }}
cancel-in-progress: true

permissions:
contents: read

Expand All @@ -21,10 +25,11 @@ env:

jobs:
build-and-push:
name: Build and Push to Container Registry
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
packages: write # required for publishing artifacts

steps:
- name: Checkout code
Expand All @@ -46,11 +51,14 @@ jobs:

- name: Compute image tag
id: meta
env:
GITHUB_EVENT_NAME: ${{ github.event.name }}
GITHUB_EVENT_INPUTS_TAG: ${{ github.event.inputs.tag }}
run: |
if ["${{ github.event.name }}" = "workflow_dispatch"]; then
echo "TAG=${{ github.event.inputs.tag }}" >> $GITHUB_OUTPUT
if [ "${GITHUB_EVENT_NAME}" = "workflow_dispatch" ]; then
echo "TAG=${GITHUB_EVENT_INPUTS_TAG}" >> "$GITHUB_OUTPUT"
else
echo "TAG=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
echo "TAG=${GITHUB_REF_NAME}" >> "$GITHUB_OUTPUT"
fi

- name: Build and push with Bake
Expand All @@ -61,4 +69,4 @@ jobs:
env:
REGISTRY: ${{ env.REGISTRY }}
IMAGE_NAME: ${{ env.IMAGE_NAME }}
TAG: ${{ steps.meta.outputsk.TAG }}
TAG: ${{ steps.meta.outputs.TAG }}
Loading
Loading