43 lines
1 KiB
YAML
43 lines
1 KiB
YAML
name: Docker Build
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" , "feature/ui-login-rework"]
|
|
paths-ignore:
|
|
- 'README.md'
|
|
- '.gitignore'
|
|
|
|
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Log in to the Container registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: git.unfilteredrealm.com
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.DOCKER_TOKEN }}
|
|
|
|
- name: Extract metadata (tags, labels) for Docker
|
|
id: meta
|
|
uses: docker/metadata-action@v5
|
|
with:
|
|
images: git.unfilteredrealm.com/${{ github.repository }}
|
|
tags: type=raw,value=latest
|
|
|
|
- name: Build and push Docker image
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
labels: ${{ steps.meta.outputs.labels }}
|