Skip to content

Commit

Permalink
ci: add kind testing
Browse files Browse the repository at this point in the history
  • Loading branch information
pandatix committed Jan 25, 2025
1 parent ece85ed commit e7c4485
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/kind.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Create Cluster with Registry

on: [push, pull_request]

jobs:
kind-testing:
runs-on: ubuntu-latest
services:
registry:
image: registry:2
ports:
- 5000
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Kubernetes KinD Cluster
id: kind
uses: helm/kind-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1
with:
images: localhost:5000/ctferio/chall-manager-janitor

- name: Git commit date
id: infos
run: |
# output date per RFC 3339
date="$(git log -1 --format=%cd --date=format:%Y-%m-%dT%H:%M:%SZ)"
echo "date=$date" >> "$GITHUB_OUTPUT"
- name: Build and push Docker image
uses: docker/build-push-action@b32b51a8eda65d6793cd0494a773d4f6bcef32dc # v6.11.0
id: build
with:
push: true
tags: localhost:5000/ctferio/chall-manager-janitor
labels: ${{ steps.meta.outputs.labels }}
file: Dockerfile.chall-manager-janitor
build-args: |
VERSION=${{ github.sha }}
COMMIT=${{ github.sha }}
DATE=${{ steps.infos.outputs.date }}

0 comments on commit e7c4485

Please sign in to comment.