From 8d171cbcbf7c13f6007a8fe9a831d5a526245d72 Mon Sep 17 00:00:00 2001 From: thomas Date: Sun, 22 Sep 2024 12:58:59 +0200 Subject: [PATCH] Update .gitea/workflows/gitea.yaml --- .gitea/workflows/gitea.yaml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/gitea.yaml b/.gitea/workflows/gitea.yaml index 5cd40f7..0fb8f3c 100644 --- a/.gitea/workflows/gitea.yaml +++ b/.gitea/workflows/gitea.yaml @@ -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 / \ No newline at end of file