Skip to content

Commit

Permalink
fix(CI): Improve CI
Browse files Browse the repository at this point in the history
  • Loading branch information
flemzord committed Jul 5, 2021
1 parent 92ed340 commit cdb749a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: build --parallelism 4 --rm-dist --skip-validate
args: build --parallelism 4 --rm-dist --skip-validate --snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Configure AWS credentials
Expand All @@ -63,4 +63,3 @@ jobs:
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ jobs:
${{ runner.os }}-go-
- name: get deps
run: go get
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-west-1
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand Down
5 changes: 5 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ builds:
- CGO_ENABLED=1
goos:
- linux
goarch:
- amd64
binary: numary
archives:
- replacements:
Expand All @@ -21,3 +23,6 @@ changelog:
exclude:
- '^docs:'
- '^test:'
dockers:
- image_templates: ["496288716344.dkr.ecr.eu-west-1.amazonaws.com/numary-prod-ecr:{{ .Version }}"]
dockerfile: Dockerfile

0 comments on commit cdb749a

Please sign in to comment.