Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
Use ghcr.io/cloudquery/golang-cross:latest for cross-compile
Browse files Browse the repository at this point in the history
  • Loading branch information
yevgenypats committed Feb 7, 2021
1 parent 49e2d52 commit 128a769
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
- name: release dry run
run: make release-dry-run
- name: setup release environment
run: |-
echo "${{secrets.GORELEASER_GITHUB_TOKEN}}" | docker login ghcr.io --username $GITHUB_ACTOR --password-stdin
echo 'GITHUB_TOKEN=${{secrets.GORELEASER_GITHUB_TOKEN}}' > .release-env
run: echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env
- name: release publish
run: make release
5 changes: 2 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ builds:
env:
- CGO_ENABLED=1
- GO111MODULE=on
- CC=$PWD/gencc.sh
- CXX=$PWD/gencpp.sh
main: ./provider.go
- CC=/usr/bin/gencc.sh
- CXX=/usr/bin/gencpp.sh
ldflags:
- -s -w -X github.com/cloudquery/cloudquery/cmd.Version={{.Version}} -X github.com/cloudquery/cloudquery/cmd.Commit={{.Commit}} -X github.com/cloudquery/cloudquery/cmd.Date={{.Date}}
goos:
Expand Down
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
PACKAGE_NAME := github.com/troian/golang-cross-example
GOLANG_CROSS_VERSION ?= v1.15.2
PACKAGE_NAME := github.com/cloudquery/cq-provider-aws

.PHONY: release-dry-run
release-dry-run:
Expand All @@ -9,7 +8,7 @@ release-dry-run:
-v /var/run/docker.sock:/var/run/docker.sock \
-v `pwd`:/go/src/$(PACKAGE_NAME) \
-w /go/src/$(PACKAGE_NAME) \
troian/golang-cross:${GOLANG_CROSS_VERSION} \
ghcr.io/cloudquery/golang-cross:latest \
--rm-dist --skip-validate --skip-publish

.PHONY: release
Expand All @@ -27,5 +26,5 @@ release:
-v ~/.docker:/root/.docker \
-v `pwd`:/go/src/$(PACKAGE_NAME) \
-w /go/src/$(PACKAGE_NAME) \
troian/golang-cross:${GOLANG_CROSS_VERSION} \
ghcr.io/cloudquery/golang-cross:latest \
release --rm-dist

0 comments on commit 128a769

Please sign in to comment.