Skip to content

victoriametrics: create build definition #5

victoriametrics: create build definition

victoriametrics: create build definition #5

name: build victoriametrics (docker image)
on:
push:
paths:
- .github/workflows/victoriametrics.yml
- Dockerfile.victoriametrics
jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
if: github.repository == 'PluralKit/builds'
steps:
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
- uses: docker/build-push-action@v2
with:
file: Dockerfile.victoriametrics
push: true
tags: |
ghcr.io/pluralkit/victoriametrics:${{ github.sha }}
cache-to: type=inline