Update workflow for Gitea docker images registrty
This commit is contained in:
parent
e51802a247
commit
781c22efa0
|
|
@ -18,8 +18,18 @@ jobs:
|
||||||
npm ci
|
npm ci
|
||||||
npm run production
|
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
|
- 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
|
- name: Set up Docker Compose
|
||||||
uses: docker/compose-action@v1
|
uses: docker/compose-action@v1
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
version: '3'
|
version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
web:
|
dev:
|
||||||
image: your-docker-image-name
|
image: gitea.local.thethomaas.net/TheThomaas/11ty-workflow-example
|
||||||
ports:
|
ports:
|
||||||
- '8086:80'
|
- '8086:80'
|
||||||
volumes:
|
volumes:
|
||||||
- ./dist:/usr/share/nginx/html:ro
|
- /mnt/appdata/dev/dist:/usr/share/nginx/html:ro
|
||||||
Loading…
Reference in a new issue