Skip to content

[+] bump pashagolub/pgxmock/v3 from 3.2.0 to 3.3.0 (#628) #539

[+] bump pashagolub/pgxmock/v3 from 3.2.0 to 3.3.0 (#628)

[+] bump pashagolub/pgxmock/v3 from 3.2.0 to 3.3.0 (#628) #539

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@v5
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