Skip to content

Better logging - v2.19 #4

Better logging - v2.19

Better logging - v2.19 #4

Workflow file for this run

name: Build release
on:
release:
tags:
- 'v*'
types:
- created
jobs:
build-release:
name: Build release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create image tags
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}
flavor: latest=false
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value=stable,enable=${{startsWith(github.ref, 'refs/tags/v')}}
type=ref,event=tag
- name: Build and push
uses: docker/build-push-action@v3
with:
context: ./search-api
push: true
tags: ${{ steps.meta.outputs.tags }}