fix: fix append latency command (#36) #39
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: 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 |