diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fb3b01d..9979940 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,13 +22,12 @@ jobs: echo "POSTGRES_USER=${{ secrets.POSTGRES_USER }}" >> .env echo "POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }}" >> .env echo "POSTGRES_URL=${{ secrets.POSTGRES_URL }}" >> .env - echo "DOCKERHUB_USERNAME=${{ secrets.DOCKERHUB_USERNAME }}" >> .env echo "JWT_SECRET=${{ secrets.JWT_SECRET }}" >> .env echo "DOMAIN=${{ secrets.DOMAIN }}" >> .env - name: Build and Push Docker Images run: | - echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin + echo "${{ secrets.REG_PASSWORD }}" | docker login ${{ secrets.REG_REGISTRY }} -u ${{ secrets.REG_USERNAME }} --password-stdin docker compose build docker compose push @@ -48,7 +47,6 @@ jobs: echo "POSTGRES_USER=${{ secrets.POSTGRES_USER }}" >> .env echo "POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }}" >> .env echo "POSTGRES_URL=${{ secrets.POSTGRES_URL }}" >> .env - echo "DOCKERHUB_USERNAME=${{ secrets.DOCKERHUB_USERNAME }}" >> .env echo "JWT_SECRET=${{ secrets.JWT_SECRET }}" >> .env echo "DOMAIN=${{ secrets.DOMAIN }}" >> .env curl -O -L https://raw.githubusercontent.com/nheek/uppy/main/Dockerfile diff --git a/docker-compose.yml b/docker-compose.yml index 3ecb526..3410a81 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,7 +8,7 @@ services: - postgres env_file: - .env - image: "nheek/uppy:latest" + image: "reg.nheek.com/nheek/uppy:latest" volumes: - uploads:/usr/src/app/public/uploads