diff --git a/.github/.goreleaser.yaml b/.github/goreleaser.yaml similarity index 96% rename from .github/.goreleaser.yaml rename to .github/goreleaser.yaml index 1d90c2f..4ca6dfb 100644 --- a/.github/.goreleaser.yaml +++ b/.github/goreleaser.yaml @@ -14,6 +14,9 @@ builds: - amd64 - arm64 +gomod: + proxy: true + archives: - name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" @@ -34,7 +37,7 @@ signs: dockers: - image_templates: - "ghcr.io/gnolang/faucet:{{ .Tag }}" - dockerfile: Dockerfile + dockerfile: Dockerfile.release build_flag_templates: - "--pull" - "--label=org.opencontainers.image.created={{.Date}}" diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index cf0006b..ae572a6 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -37,6 +37,6 @@ jobs: - uses: goreleaser/goreleaser-action@v5 with: version: latest - args: release --clean --config ./.github/.goreleaser.yaml + args: release --clean --config ./.github/goreleaser.yaml env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile.local similarity index 100% rename from Dockerfile rename to Dockerfile.local diff --git a/Dockerfile.release b/Dockerfile.release new file mode 100644 index 0000000..ab2cdc7 --- /dev/null +++ b/Dockerfile.release @@ -0,0 +1,5 @@ +FROM alpine + +COPY faucet /usr/local/bin/gnofaucet + +ENTRYPOINT [ "/usr/local/bin/faucet" ]