Skip to content

Bump github.com/lib/pq from 1.10.9 to 1.11.1 #102

Bump github.com/lib/pq from 1.10.9 to 1.11.1

Bump github.com/lib/pq from 1.10.9 to 1.11.1 #102

Workflow file for this run

name: Build sql-execution-action
on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
env:
GO_VERSION: 1.24.3
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-go@v5
id: setup-go
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: ./go.mod
- name: Download go modules
if: ${{ steps.setup-go.outputs.cache-hit != 'true' }}
run: go mod download
- name: Test
run: go test -v -tags=test ./...
push:
needs: test
if: github.event_name == 'push'
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Calculate the version
run: echo "IMAGE_VERSION=$(git describe --tags --always)" >> $GITHUB_ENV
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push the image
uses: docker/build-push-action@v5
with:
push: true
file: ./Dockerfile.build
platforms: linux/amd64,linux/arm64
tags: ghcr.io/${{ github.repository }}:${{ env.IMAGE_VERSION }}