Master commit next.
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user