Files
kulakpos_web/.gitea/workflows/pipeline.yml
eko be68c4b10f
Some checks failed
Gitea Actions Demo / build-and-run (push) Failing after 1m24s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
create pipiline dockerfile
2026-03-16 04:36:12 +07:00

26 lines
671 B
YAML

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@v5 # Updated to v5
with:
context: .
push: true
tags: ${{ github.repository }}:latest
- name: Run container
run: |
docker run -d -p 8000:8000 ${{ github.repository }}:latest