Skip to content

deps: kms v1.12.26, http v0.3.9 #168

deps: kms v1.12.26, http v0.3.9

deps: kms v1.12.26, http v0.3.9 #168

Workflow file for this run

name: Docker
on:
workflow_dispatch:
push:
branches: [main, dev, test]
tags: ['v*']
permissions:
contents: read
packages: write
id-token: write
jobs:
build-amd64:
runs-on: [self-hosted, linux, amd64]
outputs:
digest: ${{ steps.build.outputs.digest }}
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver: docker-container
driver-opts: |
network=host
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Image metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/luxfi/cli
tags: |
type=ref,event=tag
type=ref,event=branch
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
type=sha,format=short,prefix=sha-
- name: Build & push (amd64)
id: build
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
provenance: false
cache-from: type=registry,ref=ghcr.io/luxfi/cli:buildcache-amd64
cache-to: type=registry,ref=ghcr.io/luxfi/cli:buildcache-amd64,mode=max
notify-universe:
needs: build-amd64
if: startsWith(github.ref, 'refs/tags/v')
runs-on: lux-build-linux-amd64
steps:
- uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.UNIVERSE_PAT }}
repository: luxfi/universe
event-type: image-published
client-payload: |
{
"service": "cli",
"image": "ghcr.io/luxfi/cli",
"tag": "${{ github.ref_name }}",
"sha": "${{ github.sha }}"
}