actions test
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9s
This commit is contained in:
22
.gitea/workflows/build.yaml
Normal file
22
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
name: Build and Push Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login to Gitea Registry
|
||||
run: echo "5ecac21d617f954cf1eace800e8958eba621625b" | docker login http://gitea:3000 -u drath --password-stdin
|
||||
|
||||
- name: Build image
|
||||
run: docker build -t gitea:3000/drath/drath.cc:latest .
|
||||
|
||||
- name: Push image
|
||||
run: docker push gitea:3000/drath.cc/drath.cc:latest
|
||||
Reference in New Issue
Block a user