add container workflow
Build and Publish Docker Image / docker (push) Successful in 24s

This commit is contained in:
Glyphscribe Ety committed 2026-10-25 16:22:20 -05:00
1 parent 53eec81242
commit 24487c738a
1 file changed
+40
+40
View File
@@ -0,0 +1,40 @@
name: Build and Publish Docker Image
on:
push:
branches:
- main
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Gitea registry
uses: docker/login-action@v3
with:
registry: code.mch.onl
username: ety
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
no-cache: true
platforms: linux/amd64
tags: |
code.mch.onl/ety/veilamp-server:latest
code.mch.onl/ety/veilamp-server:sha-${{ github.sha }}
labels: |
org.opencontainers.image.source=https://code.mch.onl/ety/veilamp-server-docker
org.opencontainers.image.revision=${{ github.sha }}