Skip to content

fix: fix append latency command (#36) #38

fix: fix append latency command (#36)

fix: fix append latency command (#36) #38

Workflow file for this run

name: release
on:
push:
env:
IMAGE_NAME: hstreamdb/hstream-exporter
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build & Push release image
if: startsWith(github.ref, 'refs/tags/v')
run: |
docker build . -t ${IMAGE_NAME}:${GITHUB_REF#refs/*/}
docker push ${IMAGE_NAME}:${GITHUB_REF#refs/*/}
- name: Build & Push latest image
if: "${{ !startsWith(github.ref, 'refs/tags/v') }}"
run: |
docker build . -t ${IMAGE_NAME}:latest
docker push ${IMAGE_NAME}:latest