2025-01-13 23:04:15 +00:00
|
|
|
name: Deploy
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2025-01-15 00:49:18 +00:00
|
|
|
- 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
|
2025-01-13 23:04:15 +00:00
|
|
|
with:
|
|
|
|
node-version: '20.x'
|
|
|
|
- run: npm i
|
2025-01-15 00:49:18 +00:00
|
|
|
- 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
|