Skip to content

Commit

Permalink
ci: enable github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloanan committed Jul 25, 2024
1 parent 4f8b90c commit 823234f
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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

0 comments on commit 823234f

Please sign in to comment.