Cleanup deploy.yml
All checks were successful
Deploy to Docker Container / deploy (push) Successful in 39s
All checks were successful
Deploy to Docker Container / deploy (push) Successful in 39s
This commit is contained in:
parent
92e65e5fae
commit
15e571560b
|
|
@ -18,32 +18,13 @@ jobs:
|
||||||
npm ci
|
npm ci
|
||||||
npm run production
|
npm run production
|
||||||
|
|
||||||
# - name: Log in to Docker registry
|
|
||||||
# uses: docker/login-action@v2
|
|
||||||
# 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 thethomaas/11ty-workflow-example:latest --build-arg SITE_DIRECTORY=dist .
|
run: docker build -t thethomaas/11ty-workflow-example:latest --build-arg SITE_DIRECTORY=dist .
|
||||||
# run: docker build -t gitea.local.thethomaas.net/thethomaas/11ty-workflow-example:latest --build-arg SITE_DIRECTORY=dist .
|
|
||||||
|
|
||||||
# - name: Push Docker image
|
- name: Remove old Docker container
|
||||||
# run: docker push gitea.local.thethomaas.net/thethomaas/11ty-workflow-example:latest
|
run: |
|
||||||
|
docker stop dev || true && docker rm dev || true
|
||||||
# - name: Set up Docker Compose
|
|
||||||
# uses: https://github.com/isbang/compose-action@v1.4.1
|
|
||||||
# with:
|
|
||||||
# compose-file: docker-compose.yml
|
|
||||||
|
|
||||||
- name: Run Docker container
|
- name: Run Docker container
|
||||||
run: |
|
run: |
|
||||||
docker stop dev
|
|
||||||
docker rm dev
|
|
||||||
docker run -d -p 8086:80 --name dev thethomaas/11ty-workflow-example:latest
|
docker run -d -p 8086:80 --name dev thethomaas/11ty-workflow-example:latest
|
||||||
|
|
||||||
# run: sudo docker run -d -p 8086:80 -v /mnt/appdata/dev/dist:/usr/share/nginx/html:ro thethomaas/11ty-workflow-example:latest
|
|
||||||
|
|
||||||
# - name: Start Docker Compose services
|
|
||||||
# run: docker-compose up -d
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue