Skip to content

chore: update GO_VERSION to 1.26 in keploy-ci Dockerfile (#12) #56

chore: update GO_VERSION to 1.26 in keploy-ci Dockerfile (#12)

chore: update GO_VERSION to 1.26 in keploy-ci Dockerfile (#12) #56

Workflow file for this run

name: Publish Docker Images
on:
push:
tags:
- 'v*'
release:
types: [published]
env:
REGISTRY: ghcr.io
# All variants are pushed as tags under the same GHCR package.
IMAGE: ghcr.io/keploy/keploy-ci
jobs:
# ── Stage 1: Base images (no inter-image dependencies) ──────────────
base-images:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
include:
# Multi-arch (amd64 + arm64)
- context: ./keploy-ci
tag-prefix: ''
platforms: linux/amd64,linux/arm64
- context: ./keploy-ci-slim
tag-prefix: 'slim-'
platforms: linux/amd64,linux/arm64
- context: ./keploy-ci-timefreeze
tag-prefix: 'timefreeze-'
platforms: linux/amd64,linux/arm64
- context: ./keploy-ci-golint
tag-prefix: 'golint-'
platforms: linux/amd64,linux/arm64
- context: ./keploy-ci-awscli
tag-prefix: 'awscli-'
platforms: linux/amd64,linux/arm64
# amd64-only (MinGW cross-compiler is x86-64 only)
- context: ./keploy-ci-go-build
tag-prefix: 'go-build-'
platforms: linux/amd64
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels)
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE }}
tags: |
type=semver,pattern=${{ matrix.tag-prefix }}{{version}}
type=semver,pattern=${{ matrix.tag-prefix }}{{major}}.{{minor}}
type=semver,pattern=${{ matrix.tag-prefix }}{{major}}
type=raw,value=${{ matrix.tag-prefix }}latest,enable={{is_default_branch}}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: ${{ matrix.context }}
platforms: ${{ matrix.platforms }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
# ── Stage 2: Images that depend on keploy-ci ────────────────────────
derived-images:
needs: base-images
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
include:
- context: ./keploy-ci-node
tag-prefix: 'node-'
platforms: linux/amd64,linux/arm64
- context: ./keploy-ci-java
tag-prefix: 'java-'
platforms: linux/amd64,linux/arm64
- context: ./keploy-ci-python
tag-prefix: 'python-'
platforms: linux/amd64,linux/arm64
- context: ./keploy-ci-playwright
tag-prefix: 'playwright-'
platforms: linux/amd64
- context: ./keploy-ci-lighthouse
tag-prefix: 'lighthouse-'
platforms: linux/amd64
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels)
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE }}
tags: |
type=semver,pattern=${{ matrix.tag-prefix }}{{version}}
type=semver,pattern=${{ matrix.tag-prefix }}{{major}}.{{minor}}
type=semver,pattern=${{ matrix.tag-prefix }}{{major}}
type=raw,value=${{ matrix.tag-prefix }}latest,enable={{is_default_branch}}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: ${{ matrix.context }}
platforms: ${{ matrix.platforms }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max