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