gitea: working on docker build pipeline #4

Merged
dresi merged 1 commits from add_gitea_action_pipeline into master 2025-11-09 16:39:02 +01:00

View File

@ -1,12 +1,27 @@
name: Gitea Actions Demo name: Build and push container image
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 run-name: ${{ gitea.actor }} is building and pushing container image
on: [push] on: create
env:
REGISTRY_DOMAIN: harbor.lan
REGISTRY_USER: act_runner
REGISTRY_TOKEN: "LibgegWaltAtcogwecGaj@Knyajes4"
RESULT_IMAGE_NAME: andreas/rsyncd
jobs: jobs:
Explore-Gitea-Actions: build-and-push-image:
runs-on: docker runs-on: docker
steps: steps:
- name: Check out repository - name: Checkout
uses: actions/checkout@v5 uses: actions/checkout@v4
- run: echo "Starting building the docker image" - name: Log in to registry
- run: docker build -t andreas/rsyncd:latest . uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY_DOMAIN }}
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_TOKEN }}
- name: Build and push image
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ env.REGISTRY_DOMAIN }}/${{ env.RESULT_IMAGE_NAME }}:${{ gitea.ref }}