Skip to content

patch(deps): update module github.com/spf13/cobra to v1.8.1 #405

patch(deps): update module github.com/spf13/cobra to v1.8.1

patch(deps): update module github.com/spf13/cobra to v1.8.1 #405

Workflow file for this run

---
name: docker
"on":
push:
branches:
- master
tags:
- v*
jobs:
docker:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- platform: linux/386
goos: linux
goarch: 386
- platform: linux/amd64
goos: linux
goarch: amd64
- platform: linux/arm64
goos: linux
goarch: arm64
- platform: linux/arm/6
goos: linux
goarch: arm
goarm: 6
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Setup nodejs
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
cache-dependency-path: package-lock.json
- name: Setup golang
uses: actions/setup-go@v5
with:
go-version: ^1.22.0
- name: WebUI deps
run: npm install --ci
- name: WebUI build
run: npm run build
- name: Run generate
run: make generate
- name: Build binary
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
GOARM: ${{ matrix.goarm }}
run: |
make build
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
images: |
kleister/kleister-ui
quay.io/kleister/kleister-ui
ghcr.io/kleister/kleister-ui
labels: |
org.opencontainers.image.vendor=Kleister
maintainer=Thomas Boerger <thomas@webhippie.de>
tags: |
type=ref,event=pr
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
flavor: |
suffix=-${{ matrix.goos }}-${{ matrix.goarch }}
- name: Setup qemu
uses: docker/setup-qemu-action@v3
- name: Setup buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Hub login
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Quay login
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Ghcr login
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image
uses: docker/build-push-action@v5
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
file: docker/Dockerfile.${{ matrix.goos }}.${{ matrix.goarch }}
platforms: ${{ matrix.platform }}
push: ${{ github.event_name != 'pull_request' }}
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
provenance: false
manifest:
runs-on: ubuntu-latest
needs: docker
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Hub tags
id: hub
uses: docker/metadata-action@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
images: kleister/kleister-ui
tags: |
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Hub manifest
uses: actionhippie/manifest@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v6
template: kleister/kleister-ui:VERSION-OS-ARCH
target: ${{ steps.hub.outputs.tags }}
ignore_missing: true
- name: Quay tags
id: quay
uses: docker/metadata-action@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
images: quay.io/kleister/kleister-ui
tags: |
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Quay manifest
uses: actionhippie/manifest@v1
with:
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v6
template: quay.io/kleister/kleister-ui:VERSION-OS-ARCH
target: ${{ steps.quay.outputs.tags }}
ignore_missing: true
- name: Ghcr tags
id: ghcr
uses: docker/metadata-action@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
images: ghcr.io/kleister/kleister-ui
tags: |
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Ghcr manifest
uses: actionhippie/manifest@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v6
template: ghcr.io/kleister/kleister-ui:VERSION-OS-ARCH
target: ${{ steps.ghcr.outputs.tags }}
ignore_missing: true
readme:
runs-on: ubuntu-latest
needs: docker
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Hub readme
uses: actionhippie/pushrm@v1
with:
provider: dockerhub
target: kleister/kleister-ui
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
description: "Kleister: Web UI"
readme: README.md
- name: Quay readme
uses: actionhippie/pushrm@v1
with:
provider: quay
target: quay.io/kleister/kleister-ui
apikey: ${{ secrets.QUAY_APIKEY }}
readme: README.md
...