Skip to content

Commit

Permalink
feat(build): add CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
JorgenEvens committed Oct 18, 2024
1 parent 6d8949e commit f57335e
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: docker-build

on:
push:
branches:
- main

jobs:
docker:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- name: Log in to ghcr.io
uses: docker/login-action@v2
with:
registry: "ghcr.io"
username: ${{ github.actor }}
password: ${{ github.token }}

- id: meta
name: Create image metadata
uses: docker/metadata-action@v5
with:
images: ${{ github.repository }}

- name: Build Docker image
uses: docker/build-push-action@v4
with:
pull: true
push: true
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit f57335e

Please sign in to comment.