Skip to content

fix(deps): update module github.com/docker/docker to v28.3.0+incompatible #3224

fix(deps): update module github.com/docker/docker to v28.3.0+incompatible

fix(deps): update module github.com/docker/docker to v28.3.0+incompatible #3224

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Build Agents
on:
push:
branches:
- 'main'
tags:
- '*'
pull_request:
jobs:
build-agent:
timeout-minutes: 30
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
matrix:
agent:
- docker-agent
- kubernetes-agent
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Generate commit hash
id: generate
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Login to GitHub Container Registry
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
- name: Generate Docker Metadata
id: meta
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
with:
images: ghcr.io/glasskube/distr/${{ matrix.agent }}
tags: |
type=ref,event=branch
type=sha,event=branch
type=semver,pattern={{version}}
flavor: |
latest=false
labels: |
org.opencontainers.image.description=Distr agent software
org.opencontainers.image.vendor=Glasskube
- name: Docker build (push only for tag)
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
with:
platforms: ${{ startsWith(github.ref, 'refs/tags/') && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
file: Dockerfile.${{ matrix.agent }}
build-args: |
COMMIT=${{ steps.generate.outputs.sha_short }}
VERSION=${{ github.ref_name }}
push: ${{ startsWith(github.ref, 'refs/tags/') }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max