Skip to content

Commit

Permalink
Fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
leg100 committed Oct 31, 2021
1 parent 34a61d8 commit dd262d0
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ on:

jobs:
goreleaser:
# Containers must run in Linux based operating systems
# You must use a Linux environment when using service containers or container jobs
runs-on: ubuntu-latest
container: golang:1.16-bullseye
# Service containers to run with `goreleaser`
services:
# Label used to access the service container
Expand All @@ -25,22 +24,30 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16.4
-
name: E2E tests
run: |
cp e2e/fixtures/cert.crt /usr/local/share/ca-certificates
update-ca-certificates
sudo cp e2e/fixtures/cert.crt /usr/local/share/ca-certificates
sudo update-ca-certificates
make e2e
make go-tfe-tests e2e
env:
# The hostname used to communicate with the PostgreSQL service container
OTF_DATABASE: postgres://postgres:postgres@postgres/postgres
OTF_DATABASE: postgres://postgres:postgres@localhost/postgres?sslmode=disable
-
name: login to docker hub
run: echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u leg100 --password-stdin
Expand All @@ -51,5 +58,5 @@ jobs:
args: release --skip-sign
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OTF_TEST_DATABASE_URL: postgres://postgres:postgres@postgres/postgres
OTF_TEST_DATABASE_URL: postgres://postgres:postgres@localhost/postgres?sslmode=disable

0 comments on commit dd262d0

Please sign in to comment.