Update workflow for Gitea docker images registrty
This commit is contained in:
parent
e51802a247
commit
781c22efa0
|
|
@ -18,8 +18,18 @@ jobs:
|
|||
npm ci
|
||||
npm run production
|
||||
|
||||
- name: Log in to Docker registry
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: gitea.local.thethomaas.net
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Build Docker image
|
||||
run: docker build -t 11ty-workflow-example --build-arg SITE_DIRECTORY=dist .
|
||||
run: docker build -t gitea.local.thethomaas.net/TheThomaas/11ty-workflow-example --build-arg SITE_DIRECTORY=dist .
|
||||
|
||||
- name: Push Docker image
|
||||
run: docker push gitea.local.thethomaas.net/TheThomaas/11ty-workflow-example
|
||||
|
||||
- name: Set up Docker Compose
|
||||
uses: docker/compose-action@v1
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
web:
|
||||
image: your-docker-image-name
|
||||
dev:
|
||||
image: gitea.local.thethomaas.net/TheThomaas/11ty-workflow-example
|
||||
ports:
|
||||
- '8086:80'
|
||||
volumes:
|
||||
- ./dist:/usr/share/nginx/html:ro
|
||||
- /mnt/appdata/dev/dist:/usr/share/nginx/html:ro
|
||||
Loading…
Reference in a new issue