Skip to content

Commit dd262d0

Browse files
committed
Fix release workflow
1 parent 34a61d8 commit dd262d0

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ on:
77

88
jobs:
99
goreleaser:
10-
# Containers must run in Linux based operating systems
10+
# You must use a Linux environment when using service containers or container jobs
1111
runs-on: ubuntu-latest
12-
container: golang:1.16-bullseye
1312
# Service containers to run with `goreleaser`
1413
services:
1514
# Label used to access the service container
@@ -25,22 +24,30 @@ jobs:
2524
--health-interval 10s
2625
--health-timeout 5s
2726
--health-retries 5
27+
ports:
28+
# Maps tcp port 5432 on service container to the host
29+
- 5432:5432
2830
steps:
2931
-
3032
name: Checkout
3133
uses: actions/checkout@v2
3234
with:
3335
fetch-depth: 0
36+
-
37+
name: Set up Go
38+
uses: actions/setup-go@v2
39+
with:
40+
go-version: 1.16.4
3441
-
3542
name: E2E tests
3643
run: |
37-
cp e2e/fixtures/cert.crt /usr/local/share/ca-certificates
38-
update-ca-certificates
44+
sudo cp e2e/fixtures/cert.crt /usr/local/share/ca-certificates
45+
sudo update-ca-certificates
3946
make e2e
4047
make go-tfe-tests e2e
4148
env:
4249
# The hostname used to communicate with the PostgreSQL service container
43-
OTF_DATABASE: postgres://postgres:postgres@postgres/postgres
50+
OTF_DATABASE: postgres://postgres:postgres@localhost/postgres?sslmode=disable
4451
-
4552
name: login to docker hub
4653
run: echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u leg100 --password-stdin
@@ -51,5 +58,5 @@ jobs:
5158
args: release --skip-sign
5259
env:
5360
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54-
OTF_TEST_DATABASE_URL: postgres://postgres:postgres@postgres/postgres
61+
OTF_TEST_DATABASE_URL: postgres://postgres:postgres@localhost/postgres?sslmode=disable
5562

0 commit comments

Comments
 (0)