From be68c4b10ff4b9074a71e73cac71ce1ff2ecabe8 Mon Sep 17 00:00:00 2001 From: eko Date: Mon, 16 Mar 2026 04:36:12 +0700 Subject: [PATCH] create pipiline dockerfile --- .gitea/workflows/pipeline.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/pipeline.yml b/.gitea/workflows/pipeline.yml index c5fdf4b..04e5e1b 100644 --- a/.gitea/workflows/pipeline.yml +++ b/.gitea/workflows/pipeline.yml @@ -7,19 +7,20 @@ jobs: 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 + uses: docker/build-push-action@v5 # Updated to v5 with: context: . push: true - tags: "latest" + tags: ${{ github.repository }}:latest + - name: Run container - uses: docker/run-action@v2 - with: - image: ${{ github.repository }}:latest - ports: ["8000:8000"] + run: | + docker run -d -p 8000:8000 ${{ github.repository }}:latest \ No newline at end of file