Update .gitea/workflows/gitea.yaml
Some checks failed
Tomcode landing build/deploy / build (push) Failing after 0s

This commit is contained in:
thomas 2024-09-22 12:58:59 +02:00
parent 58a02ce74b
commit 8d171cbcbf

View File

@ -20,20 +20,12 @@ jobs:
run: | run: |
echo "Building application." echo "Building application."
npm run build --cache .npm --prefer-offline npm run build --cache .npm --prefer-offline
- name: Dockerize - name: Build and push
uses: docker://docker:stable-dind uses: docker/build-push-action@v6
env: with:
DOCKER_HOST: tcp://docker:2376 context: "{{defaultContext}}:mysubdir"
DOCKER_TLS_CERTDIR: "/certs" push: true
DOCKER_TLS_VERIFY: 1 tags: thomas/tomcode/landing:latest
DOCKER_CERT_PATH: "$DOCKER_TLS_CERTDIR/client"
run: |
echo "Building docker image."
cd ./docker
docker build -t tomcode/landing:latest .
echo "Pushing docker image."
docker login git.tomcode.io -u thomas -p N0sflgdh@
docker push tomcode/landing:latest
- name: Testing host - name: Testing host
uses: host uses: host
run: ls -la / run: ls -la /