action to build docker
All checks were successful
Build and Push Docker Image / build (push) Successful in 4m14s
All checks were successful
Build and Push Docker Image / build (push) Successful in 4m14s
This commit is contained in:
28
.gitea/workflows/build-docker.yml
Normal file
28
.gitea/workflows/build-docker.yml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
name: Build and Push Docker Image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
#branches:
|
||||||
|
# - main # Trigger only on pushes to main (adjust if needed)
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: docker-build # Runner must have Docker available
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Log in to Gitea Registry
|
||||||
|
run: |
|
||||||
|
echo "${{ secrets.DOCKER_REG_TOKEN }}" | docker login \
|
||||||
|
git.revwal.de \
|
||||||
|
-u "EyeToEye" --password-stdin
|
||||||
|
|
||||||
|
- name: Build Docker image
|
||||||
|
run: |
|
||||||
|
docker build -t git.revwal.de/eyetoeye/eve_structure:latest .
|
||||||
|
|
||||||
|
- name: Push Docker image
|
||||||
|
run: |
|
||||||
|
docker push git.revwal.de/eyetoeye/eve_structure:latest
|
||||||
Reference in New Issue
Block a user