Skip to content

Merge pull request #269 from ckb-cell/feat/too-large-tx-warning #33

Merge pull request #269 from ckb-cell/feat/too-large-tx-warning

Merge pull request #269 from ckb-cell/feat/too-large-tx-warning #33

Workflow file for this run

name: Docker Publish
on:
workflow_dispatch:
push:
branches:
- main
- develop
tags:
- v*.*.*
jobs:
docker-build-push:
runs-on: ubuntu-22.04
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- name: Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
context: git
images: ghcr.io/${{ github.repository }}-service
flavor: |
latest=auto
tags: |
type=ref,event=tag
type=semver,pattern={{version}}
type=ref,event=branch
type=ref,event=branch,suffix=-{{date 'YYYYMMDDHHmm'}}
type=sha,enable=true,prefix=sha-,format=short
env:
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: .
target: service
push: true
provenance: false
platforms: linux/amd64, linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
annotations: ${{ steps.meta.outputs.annotations }}