35 lines
857 B
YAML
35 lines
857 B
YAML
name: build and deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- uses: docker/setup-buildx-action@v3
|
|
- uses: docker/login-action@v3
|
|
with:
|
|
registry: git.usbharu.dev
|
|
username: usbharu
|
|
password: ${{ secrets.DOCKER_TOKEN }}
|
|
- name: metadata
|
|
id: meta
|
|
uses: docker/metadata-action@v5
|
|
with:
|
|
images: git.usbharu.dev/usbharu/now-playing
|
|
tags: |
|
|
type=raw,value=latest
|
|
type=sha,prefix=,suffix=,format=short
|
|
- name: build
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
file: ./Dockerfile
|
|
push: true
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
labels: ${{ steps.meta.outputs.labels }}
|