Skip to content

build(hello-tracing-gateway): release version 1.0.1 #7

build(hello-tracing-gateway): release version 1.0.1

build(hello-tracing-gateway): release version 1.0.1 #7

Workflow file for this run

name: release-hello-tracing-gateway
on:
push:
tags:
- hello-tracing-gateway-v*
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
- name: Determine version
id: version
run: |
ref_name=${{ github.ref_name }}
version=${ref_name#hello-tracing-gateway-}
echo "version=$version" >> "$GITHUB_OUTPUT"
- name: Docker metadata
uses: docker/metadata-action@v4
id: meta
with:
images: hseeberger/hello-tracing-gateway
tags: type=semver,pattern={{version}},value=${{ steps.version.outputs.version }}
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker build and push hello-tracing-backend
uses: docker/build-push-action@v4
with:
context: "."
file: hello-tracing-backend/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Docker build and push hello-tracing-gateway
uses: docker/build-push-action@v4
with:
context: "."
file: hello-tracing-gateway/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}