33 lines
779 B
YAML
33 lines
779 B
YAML
name: Docker build image
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: 'runner'
|
|
steps:
|
|
- name: Check Out Repo
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Login to git.nadeko.net
|
|
uses: docker/login-action@v2
|
|
with:
|
|
registry: git.nadeko.net
|
|
username: ${{ secrets.USERNAME }}
|
|
password: ${{ secrets.PASSWORD }}
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
with:
|
|
version: latest
|
|
|
|
- name: Build and push docker image
|
|
uses: docker/build-push-action@v3
|
|
with:
|
|
context: ./
|
|
file: ./Dockerfile
|
|
platforms: linux/amd64
|
|
push: true
|
|
tags: git.nadeko.net/fijxu/youtube-po-token-generator:latest
|