Skip to content

ci: migrate CI/CD from Changeset to Knope and use reusable workflows #155

ci: migrate CI/CD from Changeset to Knope and use reusable workflows

ci: migrate CI/CD from Changeset to Knope and use reusable workflows #155

Workflow file for this run

name: Docker
on:
push:
branches:
- '**'
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
tags: |
${{ github.ref_name }}
${{ github.ref_name == 'master' && 'latest' || '' }}
${{ github.ref_name == 'develop' && 'next' || '' }}
labels: |
org.opencontainers.image.title=${{ github.repository }}
org.opencontainers.image.description=${{ github.repository }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}