Compare commits
2 Commits
d7de80e7e0
...
3c46cb7c5b
| Author | SHA1 | Date | |
|---|---|---|---|
| 3c46cb7c5b | |||
| 6c5c85ec4c |
@@ -22,7 +22,7 @@ jobs:
|
||||
with:
|
||||
registry: git.nciphered.com
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- name: Build and Push Image
|
||||
uses: docker/build-push-action@v5
|
||||
@@ -49,7 +49,7 @@ jobs:
|
||||
key: ${{ secrets.DROPLET_SSH_KEY }}
|
||||
script: |
|
||||
# Authenticate with Gitea registry on Droplet
|
||||
docker login -u "${{ github.actor }}" -p "${{ secrets.GITHUB_TOKEN }}" git.nciphered.com
|
||||
docker login -u "${{ github.actor }}" -p "${{ secrets.REGISTRY_TOKEN }}" git.nciphered.com
|
||||
|
||||
# Pull latest image
|
||||
docker pull git.nciphered.com/${{ github.repository }}:latest
|
||||
|
||||
@@ -219,7 +219,7 @@ docker build -t stick-app .
|
||||
Run the container on your target Docker network, providing the connection details to your pre-existing MongoDB database container through environment variables:
|
||||
```bash
|
||||
docker run -d \
|
||||
--name stick-app-container \
|
||||
--name stick-app \
|
||||
--network your-docker-network \
|
||||
-p 80:3007 \
|
||||
-e DATABASE_URL="mongodb://your-mongodb-host:27017" \
|
||||
|
||||
Reference in New Issue
Block a user