Skip to content

Commit

Permalink
adding docker image for beta release testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Helewski committed Jan 14, 2020
1 parent 6242e2c commit 663db4c
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .beta-goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,10 @@ brews:
name: goreleaserbot
email: goreleaser@stelligent.com
folder: Formula/beta
dockers:
-
dockerfile: .dockerhub/Dockerfile
image_templates:
- "stelligent/config-lint:{{ .Tag }}"
release:
prerelease: auto
3 changes: 3 additions & 0 deletions .dockerhub/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM scratch
COPY config-lint /
ENTRYPOINT ["/config-lint"]
41 changes: 30 additions & 11 deletions .github/workflows/beta_build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,36 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container: golang:1.12
steps:
- uses: actions/checkout@master
- name: dependencies
run: go mod download
- name: make test
run: make test
- name: beta release
-
name: checkout
uses: actions/checkout@master
-
name: setup go
uses: actions/setup-go@v1
with:
go-version: '1.12'
-
name: dependencies
run: |
go mod download
-
name: docker login
env:
GITHUB_TOKEN: ${{ secrets.goreleaser }}
if: success()
DOCKER_USER: ${{ secrets.docker_user }}
DOCKER_PASSWORD: ${{ secrets.docker_password }}
run: |
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USER --password-stdin
-
name: make test
run: |
go get github.com/goreleaser/goreleaser
goreleaser release --skip-validate --config=.beta-goreleaser.yml
export GOPATH=/home/runner/go
export PATH="$PATH:$GOPATH/bin"
make test
-
name: beta release
uses: goreleaser/goreleaser-action@v1
with:
args: release --skip-validate --config=.beta-goreleaser.yml
env:
GITHUB_TOKEN: ${{ secrets.goreleaser }}

0 comments on commit 663db4c

Please sign in to comment.