Skip to content

chore: remove log for process starting #89

chore: remove log for process starting

chore: remove log for process starting #89

Workflow file for this run

name: release
on:
workflow_dispatch: {}
push:
branches:
- main
tags:
- "v*.*.*"
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
- name: checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: docker-setup
uses: docker/setup-buildx-action@v2
- name: docker-login-ghcr
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: docker-login-dockerhub
uses: docker/login-action@v2
with:
username: ${{ github.actor }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: docker-meta
id: meta
uses: docker/metadata-action@v4
with:
images: |-
ghcr.io/${{ github.repository }}
${{ github.repository }}
tags: |-
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value=pr,enable=${{ github.event_name == 'pull_request' }}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') }}
- name: docker-build-and-push
id: build-and-push
uses: docker/build-push-action@v5
with:
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
VERSION=${{github.ref_name}}@${{github.sha}}
pull: true
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}