All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9s
23 lines
512 B
YAML
23 lines
512 B
YAML
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
|