Skip to content

Decode message body before printing on console (tap,sub) (#103) #29

Decode message body before printing on console (tap,sub) (#103)

Decode message body before printing on console (tap,sub) (#103) #29

Workflow file for this run

on:
push:
tags:
- 'v*'
name: Upload release assets after tagging
jobs:
build:
name: create assets
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.23.1
- name: Checkout code
uses: actions/checkout@v4
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
if: startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
docker-image:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
name: create docker image
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: build Docker image
run: |
VERSION=$(git describe --tags)
docker build --build-arg "version=$VERSION" --tag ${IMAGE_NAME} .
- name: push Docker image
run: |
TAG=$(git describe --tags)
docker tag ${IMAGE_NAME} ${REGISTRY}/${IMAGE_NAME}:${GITHUB_SHA}
docker tag ${IMAGE_NAME} ${REGISTRY}/${IMAGE_NAME}:${TAG}
docker tag ${IMAGE_NAME} ${REGISTRY}/${IMAGE_NAME}:latest
docker push ${REGISTRY}/${IMAGE_NAME}:${GITHUB_SHA}
docker push ${REGISTRY}/${IMAGE_NAME}:${TAG}
docker push ${REGISTRY}/${IMAGE_NAME}:latest