Master commit next.

This commit is contained in:
clive
2024-05-06 22:39:23 +10:00
parent 1684901415
commit 648da48555
5 changed files with 9 additions and 11 deletions

View File

@@ -1,7 +1,6 @@
name: Gitea CI/CD
on:
push: [push]
on: [push]
jobs:
build:
@@ -19,10 +18,10 @@ jobs:
registry: https://registry.rokoh.com
- name: Build Docker image
run: docker build -t registry.rokoh.com/your-image-name:${{ github.sha }} .
run: docker build -t registry.rokoh.com/rokoh:${{ github.sha }} .
- name: Push Docker image to registry
run: docker push registry.rokoh.com/your-image-name:${{ github.sha }}
run: docker push registry.rokoh.com/rokoh:${{ github.sha }}
deploy:
runs-on: ubuntu-latest
@@ -34,7 +33,7 @@ jobs:
uses: docker/setup-action@v2
- name: Pull Docker image from registry
run: docker pull registry.rokoh.com/your-image-name:${{ github.sha }}
run: docker pull registry.rokoh.com/rokoh:${{ github.sha }}
- name: Run Docker container
run: docker run -d -p 80:80 registry.rokoh.com/your-image-name:${{ github.sha }}
run: docker run -d -p 6000:80 registry.rokoh.com/rokoh:${{ github.sha }}