Skip to content

Commit

Permalink
Update docker-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
biancamip authored Dec 20, 2023
1 parent 3c2b10c commit 8a344b4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ 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
Expand All @@ -18,14 +19,15 @@ jobs:
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
env:
GITHUB_REF: ${{ github.ref }}
with:
context: .
push: true
tags: |
RELEASE_TAG=${GITHUB_REF#refs/tags/}
mobiltracker/prometheus-mssql-exporter:latest
mobiltracker/prometheus-mssql-exporter:${RELEASE_TAG}

0 comments on commit 8a344b4

Please sign in to comment.