19 lines
534 B
YAML
19 lines
534 B
YAML
name: Publish Docker image
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
jobs:
|
|
publish:
|
|
name: Publish to GitHub Packages
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
- name: Publish image to GitHub Packages
|
|
uses: docker/build-push-action@v1
|
|
with:
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
registry: docker.pkg.github.com
|
|
repository: lowlighter/metrics/metrics
|
|
tag_with_ref: true |