Skip to content

v0.13.0

v0.13.0 #7

Workflow file for this run

name: Publish Docker image
on:
release:
types: [published]
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v2.0.0
with:
username: mobiltracker
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
- name: Get the Release Tag
run: |
echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Build and push Docker image
uses: docker/build-push-action@v3.0.0
with:
context: .
push: true
tags: |
mobiltracker/prometheus-mssql-exporter:latest
mobiltracker/prometheus-mssql-exporter:${{ env.RELEASE_TAG }}