Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deps #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build

on:
push:
branches: [ develop, main ]
branches: '*'
pull_request:
branches: [ main ]

Expand All @@ -14,13 +14,13 @@ jobs:
steps:

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ^1.14
go-version: ^1.19
id: go

- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Build for linux
run: mkdir linux && GOOS=linux GOARCH=amd64 go build -v -o linux/sslr .
Expand Down
24 changes: 8 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,22 @@ jobs:
release:
name: Build and release
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

steps:
- name: Set TAG
run: echo ::set-env name=TAG::$(echo ${GITHUB_REF:10})
run: echo TAG=$(echo ${GITHUB_REF:10}) >> $GITHUB_ENV

- name: Set ARCHIVE
run: echo ::set-env name=ARCHIVE::sslr-${TAG}.tgz
run: echo ARCHIVE==sslr-${TAG}.tgz >> $GITHUB_ENV

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ^1.14
go-version: ^1.19
id: go

- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Build for linux
run: mkdir linux && GOOS=linux GOARCH=amd64 go build -v -o linux/sslr .
Expand All @@ -44,17 +42,11 @@ jobs:

- name: Create release
id: create_release
uses: actions/create-release@master
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: ${{ env.ARCHIVE }}
tag_name: ${{ github.ref }}
release_name: ${{ env.TAG }}
body: ""
draft: true

- name: Upload release assets
uses: actions/[email protected]
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ env.ARCHIVE }}
asset_name: ${{ env.ARCHIVE }}
asset_content_type: application/tar+gzip
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'
services:
mydb:
image: postgres
image: postgres:12
volumes:
- sslr-db:/var/lib/postgresql/data
- ./docker-init.sql:/docker-entrypoint-initdb.d/init.sql
Expand Down
19 changes: 14 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
module github.com/erkkah/sslr

go 1.14
go 1.19

require (
github.com/erkkah/letarette v0.1.1
github.com/jackc/pgx/v4 v4.9.0
github.com/lib/pq v1.8.0 // indirect
github.com/erkkah/letarette v0.2.2
github.com/jackc/pgx/v4 v4.18.1
)

replace github.com/jackc/pgtype => github.com/erkkah/pgtype v1.5.1-0.20201008073842-d166e5f64f18
require (
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
github.com/jackc/pgconn v1.14.0 // indirect
github.com/jackc/pgio v1.0.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgproto3/v2 v2.3.2 // indirect
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
github.com/jackc/pgtype v1.14.0 // indirect
golang.org/x/crypto v0.9.0 // indirect
golang.org/x/text v0.9.0 // indirect
)
Loading
Loading