add variable for prometheus datasource to dashboard (#239) #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and publish tags to Docker Hub (tags only) | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
name: build images for tag | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Get the version | |
id: get_version | |
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USER }} | |
password: ${{ secrets.DOCKER_PASS }} | |
- name: Push openvpn image to Docker Hub | |
uses: docker/build-push-action@v4 | |
with: | |
tags: flant/ovpn-admin:openvpn-${{ steps.get_version.outputs.VERSION }} | |
platforms: linux/amd64,linux/arm64,linux/arm,linux/386 | |
file: Dockerfile.openvpn | |
push: true | |
- name: Push ovpn-admin image to Docker Hub | |
uses: docker/build-push-action@v4 | |
with: | |
tags: flant/ovpn-admin:${{ steps.get_version.outputs.VERSION }} | |
platforms: linux/amd64,linux/arm64,linux/arm,linux/386 | |
file: Dockerfile | |
push: true |