Skip to content

ci: enable github actions #1

ci: enable github actions

ci: enable github actions #1

Workflow file for this run

name: Release Build
on:
push:
branches:
- 'main'
- 'releases/**'
workflow_dispatch:
concurrency:
group: ${{ github.job }}-${{ github.ref }}-build
cancel-in-progress: true
jobs:
push_to_registry:
name: Docker Image to GitHub Packages
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
file: Dockerfile
context: .
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: |
ghcr.io/${{ github.repository }}:dev