Commit: Add action yaml.
Some checks failed
Gitea CI/CD / build (push) Has been cancelled

This commit is contained in:
clive
2024-05-19 13:41:28 +10:00
parent 74904a33fd
commit d94a070824
2 changed files with 6 additions and 6 deletions

View File

@@ -18,10 +18,10 @@ jobs:
registry: https://registry.rokoh.com
- name: Build Docker image
run: docker build . -t rokoh:latest -f plushealthtech/Dockerfile
run: docker build . -t plushealthtech:latest -f plushealthtech/Dockerfile
- name: Tag Docker image
run: docker tag rokoh:latest registry.rokoh.com/plushealthtech:latest
run: docker tag plushealthtech:latest registry.rokoh.com/plushealthtech:latest
- name: Push Docker image to registry
run: docker push registry.rokoh.com/plushealthtech:latest
@@ -39,7 +39,7 @@ jobs:
docker image rm plushealthtech:latest
fi
docker login registry.rokoh.com -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} && docker image pull registry.rokoh.com/plushealthtech:latest
docker run -d -p 2000:80 --restart=always --name rokoh registry.rokoh.com/plushealthtech
docker run -d -p 2000:80 --restart=always --name plushealthtech registry.rokoh.com/plushealthtech
docker image prune -f
- name: Prune Docker resources