Skip to content

update changelog

update changelog #27

Workflow file for this run

name: publish-docker
on:
workflow_dispatch:
push:
tags:
- 'v*'
jobs:
build:
name: docker-publish
runs-on: ubuntu-latest
steps:
- name: Src Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '>=1.22.0'
check-latest: true
id: go
- name: Build
if: success()
env:
GOPROXY: "https://proxy.golang.org"
run: make build
- name: Build Container
if: success()
env:
DOCKER_BUILDKIT: 1
run: |
TAG=$(git describe --tags)
GITHASH="$(git rev-parse HEAD)"
docker build \
--build-arg GITHASH=${GITHASH} \
--build-arg VERSION=${TAG} \
-f examples/Dockerfile \
-t cactus4docker/go-camo:${TAG} \
.
- name: Publish Container
if: success()
env:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
run: |
TAG=$(git describe --tags)
LATEST_TAG=$(git tag -l | grep -viE '(alpha|beta)' | sort -V | tail -n 1)
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker push cactus4docker/go-camo:${TAG}
if [[ "$TAG" = "$LATEST_TAG" ]]; then
docker tag cactus4docker/go-camo:${TAG} cactus4docker/go-camo:latest
docker push cactus4docker/go-camo:latest
fi
docker logout