Master commit next.
This commit is contained in:
@@ -18,10 +18,13 @@ jobs:
|
|||||||
registry: https://registry.rokoh.com
|
registry: https://registry.rokoh.com
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
run: docker build . -t rokoh -f rokoh/Dockerfile
|
run: docker build . -t rokoh:latest -f rokoh/Dockerfile
|
||||||
|
|
||||||
|
- name: Tag Docker image
|
||||||
|
run: docker tag rokoh:latest registry.rokoh.com/rokoh:latest
|
||||||
|
|
||||||
- name: Push Docker image to registry
|
- name: Push Docker image to registry
|
||||||
run: docker push rokoh:latest registry.rokoh.com
|
run: docker push registry.rokoh.com/rokoh:latest
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -33,7 +36,7 @@ jobs:
|
|||||||
uses: docker/setup-action@v2
|
uses: docker/setup-action@v2
|
||||||
|
|
||||||
- name: Pull Docker image from registry
|
- name: Pull Docker image from registry
|
||||||
run: docker pull registry.rokoh.com/rokoh:${{ github.sha }}
|
run: docker pull registry.rokoh.com/rokoh:latest
|
||||||
|
|
||||||
- name: Run Docker container
|
- name: Run Docker container
|
||||||
run: docker run -d -p 6000:80 registry.rokoh.com/rokoh:${{ github.sha }}
|
run: docker run -d -p 6000:80 registry.rokoh.com/rokoh:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user