diff --git a/.github/README.md b/.github/README.md index 3c59106e..1620e450 100644 --- a/.github/README.md +++ b/.github/README.md @@ -65,6 +65,16 @@ Here is a list of the APIs: - [x] a command line argument to determine the environment to use in the config file (e.e.: Dev) - [x] IN the config file you can create Queues, Topic and Subscription see the example config file in the conf directory +### Example: Passing Configuration to Docker +```shell +docker run \ + --rm \ + --name=goaws \ + -v /path/on/host/goaws-config.yaml:/path/in/container/goaws-config.yaml \ + -p=4100:4100 \ + admiralpiett/goaws:v0.4.4-arm64 -config /path/in/container/goaws-config.yaml +``` + ## Debug logging can be turned on via a command line flag (e.g.: -debug) ## Note: The system does not authenticate or presently use https diff --git a/.github/workflows/pr-tests.yml b/.github/workflows/pr-tests.yml index 62c2aa8b..bfe5e131 100644 --- a/.github/workflows/pr-tests.yml +++ b/.github/workflows/pr-tests.yml @@ -2,8 +2,8 @@ name: PR-Tests on: [pull_request] jobs: - build: - name: Build + unit-tests: + name: Unit Test runs-on: ubuntu-latest steps: @@ -22,3 +22,31 @@ jobs: - name: Unit Tests run: go test -cover -race ./app/... + + release-test: + name: Build Test + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.18' + - run: go version + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v4 + with: + distribution: goreleaser + version: v1.19.2 + args: release --snapshot --clean diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a74d18ab..2d68185e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -19,7 +19,10 @@ jobs: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 + with: + go-version: '1.18' + - run: go version - name: Set up QEMU uses: docker/setup-qemu-action@v2 diff --git a/.gitignore b/.gitignore index 9bd57c8d..06af984d 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,4 @@ goaws_linux_amd64 setenv.sh .env - +goaws-config.yaml diff --git a/makefile.txt b/makefile.txt index 8d33633a..d3da8a29 100644 --- a/makefile.txt +++ b/makefile.txt @@ -24,5 +24,3 @@ linux: docker-release: linux docker build -t pafortin/goaws . docker tag pafortin/goaws pafortin/goaws:$(VERSION) - -