Skip to content

Merge pull request #616 from cybertec-postgresql/fix-log-messages-for… #2

Merge pull request #616 from cybertec-postgresql/fix-log-messages-for…

Merge pull request #616 from cybertec-postgresql/fix-log-messages-for… #2

Workflow file for this run

name: Update Docker
on:
push:
paths:
- '**.go'
- '**.yaml'
- '**.yml'
- 'go.mod'
- 'go.sum'
- 'Dockerfile'
branches:
- 'master'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
docker:
if: true # false to skip job during debug
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Golang
uses: actions/setup-go@v4
with:
go-version: '1.21'
# despite the fact docker will build binary internally
# we want to stop workflow in case of any error before pushing to registry
- name: Get dependencies and Build
run: |
go version
go mod download
go build
- name: Version strings
id: version
run: |
echo "RELEASE_TIME=$(git show -s --format=%cI HEAD)" >> $GITHUB_OUTPUT
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
env:
VERSION: ${{ github.ref_name }}
COMMIT: ${{ github.sha }}
DATE: ${{ steps.version.outputs.RELEASE_TIME }}
with:
name: cybertecpostgresql/pg_timetable
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
buildargs: VERSION,COMMIT,DATE