misskey-exporter/.github/workflows/build-and-push.yaml

42 lines
1.0 KiB
YAML
Raw Normal View History

2025-02-02 05:47:53 +00:00
name: docker-ci
on:
push:
branches:
- 'main'
jobs:
docker:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to DockerHub
uses: docker/login-action@v3
with:
registry: git.usbharu.dev
username: usbharu
password: ${{ secrets.PUBLIC_REPOSITORY_PACKAGE_WRITE_TOKEN }}
- name: metadata
id: meta
uses: docker/metadata-action@v5
with:
images: git.usbharu.dev/usbharu/misskey-exporter
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 }}