diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 124c1f5..7df2d3d 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -5,14 +5,25 @@ jobs: Deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: docker-practice/actions-setup-docker@master - - uses: actions/setup-node@v4 + - name: Checkout + uses: actions/checkout@v3 + - name: Docker Login + uses: docker/login-action@v3 + with: + registry: git.riksolo.com + username: riksolo + password: ${{secrets.CONTAINER_REGISTRY_TOKEN}} + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Set up node + uses: actions/setup-node@v4 with: node-version: '20.x' - run: npm i - - run: echo ${{GITHuB_SHA}} - - run: echo ${{GITEA_SHA}} - - run: docker login -u riksolo -p ${{secrets.CONTAINER_REGISTRy_TOKEN}} - - run: docker build . -t git.riksolo.com/riksolo/multi-scrobbler-now-playing:latest - - run: docker push . -t git.riksolo.com/riksolo/multi-scrobbler-now-playing:latest \ No newline at end of file + - run: echo ${{vars.GITHUB_SHA}} + - run: echo ${{vars.GITEA_SHA}} + - name: Build and push + uses: docker/build-push-action@v6 + with: + push: true + tags: git.riksolo.com/riksolo/multi-scrobbler-now-playing:latest \ No newline at end of file diff --git a/compose.yaml b/compose.yaml index b5d040c..52c46dd 100644 --- a/compose.yaml +++ b/compose.yaml @@ -2,6 +2,8 @@ services: server: build: context: . + stdin_open: true + tty: true environment: NODE_ENV: production volumes: