mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-21 19:55:41 +00:00
Test gitea registry
Some checks failed
Build And Publish / BuildAndPublish (push) Failing after 2m6s
Some checks failed
Build And Publish / BuildAndPublish (push) Failing after 2m6s
This commit is contained in:
parent
dd25162cc5
commit
4c6a8a8481
@ -23,8 +23,8 @@ jobs:
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.ryansnet.xyz
|
||||
username: ${{secrets.GITEA_REGISTRY_USERNAME}}
|
||||
password: ${{secrets.GITEA_REGISTRY_PASSWORD}}
|
||||
username: ${{secrets.REGISTRY_USERNAME}}
|
||||
password: ${{secrets.REGISTRY_PASSWORD}}
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: https://github.com/docker/setup-buildx-action@v3
|
||||
@ -38,7 +38,7 @@ jobs:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: ${{secrets.DOCKER_HUB_USERNAME}}/${{vars.REPO_NAME}}:v1
|
||||
tags: ${{secrets.DOCKER_HUB_USERNAME}}/${{vars.REPO_NAME}}:latest
|
||||
|
||||
- name: Stop and remove old Docker container
|
||||
continue-on-error: true
|
||||
@ -48,9 +48,9 @@ jobs:
|
||||
|
||||
- name: Pull new image and start Docker container
|
||||
run: |
|
||||
sudo docker pull ${{secrets.DOCKER_HUB_USERNAME}}/${{vars.REPO_NAME}}:v1
|
||||
sudo docker pull ${{secrets.DOCKER_HUB_USERNAME}}/${{vars.REPO_NAME}}:latest
|
||||
sudo docker run -d --restart unless-stopped \
|
||||
--env-file ./.env \
|
||||
--name portfolio \
|
||||
-p ${{vars.DEPLOY_IP}}:3000:3000 \
|
||||
${{secrets.DOCKER_HUB_USERNAME}}/${{vars.REPO_NAME}}:v1
|
||||
${{secrets.DOCKER_HUB_USERNAME}}/${{vars.REPO_NAME}}:latest
|
Loading…
Reference in New Issue
Block a user