Compare commits
No commits in common. "a118d5e15eb611089982862da9c012c917564a21" and "7570da57108f4297e787a7302cb624f12c59ae32" have entirely different histories.
a118d5e15e
...
7570da5710
@ -1,27 +1,12 @@
|
|||||||
name: Build and push container image
|
name: Gitea Actions Demo
|
||||||
run-name: ${{ gitea.actor }} is building and pushing container image
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||||
on: create
|
on: [push]
|
||||||
|
|
||||||
env:
|
|
||||||
REGISTRY_DOMAIN: harbor.lan
|
|
||||||
REGISTRY_USER: act_runner
|
|
||||||
REGISTRY_TOKEN: "LibgegWaltAtcogwecGaj@Knyajes4"
|
|
||||||
RESULT_IMAGE_NAME: andreas/rsyncd
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push-image:
|
Explore-Gitea-Actions:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Check out repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v5
|
||||||
- name: Log in to registry
|
- run: echo "Starting building the docker image"
|
||||||
uses: docker/login-action@v3
|
- run: docker build -t andreas/rsyncd:latest .
|
||||||
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 }}
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user