This commit is contained in:
@@ -1 +1,35 @@
|
||||
name: Build
|
||||
name: Build Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Login to Gitea Registry
|
||||
uses: actions/docker-login@v3
|
||||
with:
|
||||
registry: git.local
|
||||
username: ${{ secrets.REGISTRY_USER }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- name: Configure Docker Meta
|
||||
uses: actions/docker-metadata@v5
|
||||
id: meta
|
||||
images: phantom/autopkg
|
||||
|
||||
- name: Build & Push Docker Image
|
||||
uses: actions/docker-build-push@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{ steps.meta.output.tags }}
|
||||
labels: ${{ steps.meta.output.labels }}
|
||||
|
||||
Reference in New Issue
Block a user