diff --git a/.gitea/workflows/docker-publish.yml b/.gitea/workflows/docker-publish.yml index 372c1a3..d084c27 100644 --- a/.gitea/workflows/docker-publish.yml +++ b/.gitea/workflows/docker-publish.yml @@ -50,7 +50,7 @@ jobs: uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} - username: ${{ env.REGISTRY_USERNAME }} + username: HRiggs password: ${{ env.REGISTRY_PASSWORD }} - name: Docker meta diff --git a/deploy/portainer-stack.yml b/deploy/portainer-stack.yml index 09a324c..20f7a71 100644 --- a/deploy/portainer-stack.yml +++ b/deploy/portainer-stack.yml @@ -20,10 +20,8 @@ services: retries: 5 backend: - build: - context: ../backend - dockerfile: Dockerfile - pull_policy: build + image: ${DOCKER_REGISTRY:-git.hudsonriggs.systems}/${DOCKER_IMAGE:-hudsonriggssystems/rmtpocketwatcher-backend}:${IMAGE_TAG:-latest} + pull_policy: always restart: unless-stopped depends_on: postgres: diff --git a/deploy/stack.env.example b/deploy/stack.env.example index a75260f..bcd71ab 100644 --- a/deploy/stack.env.example +++ b/deploy/stack.env.example @@ -4,8 +4,8 @@ POSTGRES_PASSWORD=your_secure_password_here POSTGRES_DB=rmtpocketwatcher # Docker Registry Configuration -DOCKER_REGISTRY=your-gitea.example.com -DOCKER_IMAGE=your-org-or-user/rmtpocketwatcher-backend +DOCKER_REGISTRY=git.hudsonriggs.systems +DOCKER_IMAGE=hudsonriggssystems/rmtpocketwatcher-backend IMAGE_TAG=latest # Backend Configuration