Prepare bridge image publishing via Gitea registry
Some checks failed
Build and Push EVS Bridge Image / docker (push) Has been cancelled
Some checks failed
Build and Push EVS Bridge Image / docker (push) Has been cancelled
This commit is contained in:
35
.gitea/workflows/bridge-image.yml
Normal file
35
.gitea/workflows/bridge-image.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
name: Build and Push EVS Bridge Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
paths:
|
||||
- "bridge/**"
|
||||
- ".gitea/workflows/bridge-image.yml"
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
REGISTRY: git.khnm-zimmerling.de
|
||||
IMAGE_NAME: kai/evs-bridge
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Log in to registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- name: Build and push latest
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: bridge
|
||||
file: bridge/Dockerfile
|
||||
push: true
|
||||
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||
Reference in New Issue
Block a user