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: |
echo "Building application."
npm run build --cache .npm --prefer-offline
- name: Dockerize
uses: docker://docker:stable-dind
env:
DOCKER_HOST: tcp://docker:2376
DOCKER_TLS_CERTDIR: "/certs"
DOCKER_TLS_VERIFY: 1
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: Build and push
uses: docker/build-push-action@v6
with:
context: "{{defaultContext}}:mysubdir"
push: true
tags: thomas/tomcode/landing:latest
- name: Testing host
uses: host
run: ls -la /