From 781c22efa0f1df5b43ddb090ff7104dc76b656ff Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Wed, 24 May 2023 20:35:21 +0200 Subject: [PATCH] Update workflow for Gitea docker images registrty --- .gitea/workflows/deploy.yml | 12 +++++++++++- docker-compose.yml | 6 +++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 23bb7cf..5350681 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -18,8 +18,18 @@ jobs: npm ci 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 - 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 uses: docker/compose-action@v1 diff --git a/docker-compose.yml b/docker-compose.yml index f6cf596..f87a803 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,9 +1,9 @@ version: '3' services: - web: - image: your-docker-image-name + dev: + image: gitea.local.thethomaas.net/TheThomaas/11ty-workflow-example ports: - '8086:80' volumes: - - ./dist:/usr/share/nginx/html:ro \ No newline at end of file + - /mnt/appdata/dev/dist:/usr/share/nginx/html:ro \ No newline at end of file