Skip to content

Build and push docker image #14

Build and push docker image

Build and push docker image #14

Workflow file for this run

name: Build and push docker image
on:
workflow_dispatch:
permissions:
contents: read
id-token: write
packages: write
jobs:
build:
runs-on: ubicloud
steps:
- uses: actions/checkout@v4
with:
repository: windmill-labs/windmillhub
token: ${{ secrets.WINDMILLHUB_GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Docker metadata
id: metadata
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/${{ github.repository }}
- uses: depot/setup-action@v1
- name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push privately
uses: depot/build-push-action@v1
with:
context: .
push: true
token: ${{ secrets.DEPOT_TOKEN }}
platforms: linux/amd64,linux/arm64
provenance: false
tags: ${{ steps.metadata.outputs.tags }}
labels: |
${{ steps.metadata.outputs.labels }}
org.opencontainers.image.licenses=Windmill-Enterprise-License