Skip to content

build: fix dockerfile fr #6

build: fix dockerfile fr

build: fix dockerfile fr #6

Workflow file for this run

name: ci
on:
push:
paths:
- "**/*.go"
- "go.mod"
- "go.sum"
- ".dockerignore"
- "Dockerfile"
- ".github/workflows/ci.yml"
branches:
- "main"
tags:
- "v*"
release:
types: [published]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
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: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/j1nxie/closure-api
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max