prometheus-immich-exporter/.github/workflows/docker.yml

30 lines
716 B
YAML
Raw Normal View History

2020-10-23 21:49:29 +02:00
name: Docker
on:
push:
branches: [ master ]
2020-10-24 10:40:20 +02:00
release:
types: [ created ]
2020-10-23 21:49:29 +02:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@v2
2020-10-24 10:30:21 +02:00
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
2020-10-23 22:02:24 +02:00
- name: Login to DockerHub
2020-10-24 10:40:20 +02:00
uses: docker/login-action@v1
2020-10-23 21:49:29 +02:00
with:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
2020-10-24 10:30:21 +02:00
2020-10-23 22:02:24 +02:00
- name: Build and push docker
uses: docker/build-push-action@v2
2020-10-23 22:04:10 +02:00
with:
2020-10-23 22:04:55 +02:00
push: true
2020-10-24 10:40:20 +02:00
tags: esanchezm/prometheus-qbittorrent-exporter:latest,esanchezm/prometheus-qbittorrent-exporter:$GITHUB_REF