create pipiline dockerfile
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
This commit is contained in:
27
.gitea/workflows/pipeline.yml
Normal file
27
.gitea/workflows/pipeline.yml
Normal 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 *******/
|
||||
Reference in New Issue
Block a user