create pipiline dockerfile
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s

This commit is contained in:
eko
2026-03-16 04:27:19 +07:00
parent 37b879948c
commit abba223bcf

View File

@@ -0,0 +1,27 @@
/************* ✨ Windsurf Command ⭐ *************/
name: Gitea Actions Demo
on: [push]
jobs:
build-and-run:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: "latest"
- name: Run container
uses: docker/run-action@v2
with:
image: ${{ github.repository }}:latest
ports: ["8000:8000"]
/******* de172138-7df1-41e4-b549-beb9d9bd9967 *******/