-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cae3e53
commit 5270b3c
Showing
11 changed files
with
693 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: goreleaser | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Unshallow | ||
run: git fetch --prune --unshallow | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ~1.19 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Install eget | ||
run: go install github.com/zyedidia/eget@latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v1 | ||
with: | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ test.yaml | |
/coverage.out | ||
/.vscode/*.log | ||
/go.work* | ||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
project_name: imap | ||
|
||
builds: | ||
- id: imap_targz | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- darwin | ||
- freebsd | ||
- linux | ||
- windows | ||
goarch: | ||
- 386 | ||
- amd64 | ||
- arm | ||
- arm64 | ||
goarm: | ||
- 6 | ||
- 7 | ||
ignore: | ||
- goos: darwin | ||
goarch: arm | ||
- goos: freebsd | ||
goarch: arm64 | ||
- goos: windows | ||
goarch: arm | ||
- goos: windows | ||
goarch: arm64 | ||
|
||
- id: imap_zip | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- darwin | ||
- windows | ||
goarch: | ||
- 386 | ||
- amd64 | ||
|
||
archives: | ||
- id: targz | ||
builds: | ||
- imap_targz | ||
format: tar.gz | ||
|
||
- id: zip | ||
builds: | ||
- imap_zip | ||
format: zip | ||
|
||
checksum: | ||
name_template: 'checksums.txt' | ||
|
||
snapshot: | ||
name_template: "{{ .Tag }}-next" | ||
|
||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^docs:' | ||
- '^test:' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
project_name: imap | ||
|
||
builds: | ||
- id: imap_targz | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- darwin | ||
- freebsd | ||
- linux | ||
- windows | ||
goarch: | ||
- "386" | ||
- amd64 | ||
- arm | ||
- arm64 | ||
goarm: | ||
- "6" | ||
- "7" | ||
ignore: | ||
- goos: darwin | ||
goarch: arm | ||
- goos: freebsd | ||
goarch: arm64 | ||
- goos: windows | ||
goarch: arm | ||
- goos: windows | ||
goarch: arm64 | ||
|
||
- id: imap_zip | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- darwin | ||
- windows | ||
goarch: | ||
- "386" | ||
- amd64 | ||
|
||
archives: | ||
- id: targz | ||
builds: | ||
- imap_targz | ||
format: tar.gz | ||
|
||
- id: zip | ||
builds: | ||
- imap_zip | ||
format: zip | ||
|
||
checksum: | ||
name_template: 'checksums.txt' | ||
|
||
snapshot: | ||
name_template: "{{ .Tag }}-next" | ||
|
||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^docs:' | ||
- '^test:' | ||
|
||
dockers: | ||
- image_templates: | ||
- "creativeprojects/imap:latest-amd64" | ||
- "creativeprojects/imap:{{ .RawVersion }}-amd64" | ||
ids: | ||
- imap_targz | ||
use: buildx | ||
goos: linux | ||
goarch: amd64 | ||
dockerfile: build/Dockerfile | ||
build_flag_templates: | ||
- "--platform=linux/amd64" | ||
- "--build-arg=ARCH=amd64" | ||
- image_templates: | ||
- "creativeprojects/imap:latest-arm64v8" | ||
- "creativeprojects/imap:{{ .RawVersion }}-arm64v8" | ||
ids: | ||
- imap_targz | ||
use: buildx | ||
goos: linux | ||
goarch: arm64 | ||
dockerfile: build/Dockerfile | ||
build_flag_templates: | ||
- "--platform=linux/arm64/v8" | ||
- "--build-arg=ARCH=arm64" | ||
|
||
docker_manifests: | ||
- name_template: creativeprojects/imap:{{ .RawVersion }} | ||
image_templates: | ||
- creativeprojects/imap:{{ .RawVersion }}-amd64 | ||
- creativeprojects/imap:{{ .RawVersion }}-arm64v8 | ||
- name_template: creativeprojects/imap:latest | ||
image_templates: | ||
- creativeprojects/imap:latest-amd64 | ||
- creativeprojects/imap:latest-arm64v8 | ||
|
||
brews: | ||
- | ||
name: imap | ||
ids: | ||
- targz | ||
goarm: "6" | ||
tap: | ||
owner: creativeprojects | ||
name: "homebrew-tap" | ||
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" | ||
commit_author: | ||
name: goreleaser | ||
email: fred@creativeprojects.tech | ||
folder: Formula | ||
homepage: https://github.com/creativeprojects/{{ .ProjectName }} | ||
description: "IMAP tools: backup, copy, move your emails between servers and locally" | ||
license: "GPL-3.0-only" | ||
custom_block: | | ||
head "https://github.com/creativeprojects/{{ .ProjectName }}.git" | ||
install: | | ||
bin.install "{{ .ProjectName }}" | ||
release: | ||
draft: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM alpine:latest | ||
|
||
LABEL maintainer Fred <fred@gcreativeprojects.tech> | ||
|
||
ARG ARCH=amd64 | ||
|
||
COPY imap /usr/bin/imap | ||
|
||
VOLUME /imap | ||
WORKDIR /imap | ||
|
||
ENTRYPOINT ["imap"] | ||
CMD ["--help"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.