Skip to content

Commit

Permalink
Merge pull request #15 from nimbolus/fix-go-test-workflow
Browse files Browse the repository at this point in the history
Fix go test workflow
  • Loading branch information
tobikris authored Oct 19, 2022
2 parents 744ce20 + 4af6427 commit bcd56b6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Build and publish Container Image
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

env:
REGISTRY: ghcr.io
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Run Go tests

on: [push]
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
test:
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ services:
environment:
MINIO_ROOT_USER: root
MINIO_ROOT_PASSWORD: password
MINIO_CONSOLE_ADDRESS: :9001
command: server /storage
ports:
- "9000:9000"
- "9001:9001"

volumes:
states:
2 changes: 1 addition & 1 deletion docs/storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Set `STORAGE_BACKEND` to `fs`.
The S3 backend stores the state files in any S3-compatible object store using the [MinIO SDK](https://docs.min.io/docs/golang-client-quickstart-guide.html). Since locking is handled by the Terraform backend server separately, the S3 API doesn't need support for write-once-read-many (WORM).

### Config
Set `STORAGE_BACKEND` to `fs`.
Set `STORAGE_BACKEND` to `s3`.

| Environment Variable | Type | Default | Description |
|-----------------------|--------|--------------------|-------------------------|
Expand Down

0 comments on commit bcd56b6

Please sign in to comment.