High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
JavaScript campaigncampaign-managementemail-marketingemail-subscriptionlistmonkmailing-listnewsletternewsletter-managementnewsletter-softwareself-hostedsms-gatewaysmtptransactional-emails
build: push docker image to ghcr.io (#1237)
Chinmay Pai8c46b758ce2e
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex a0eef10b..6d0d7e20 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -25,6 +25,13 @@ jobs:username: ${{ secrets.DOCKERHUB_USERNAME }}password: ${{ secrets.DOCKERHUB_TOKEN }}+ - name: Login to GitHub Docker Registry+ uses: docker/login-action@v2+ with:+ registry: ghcr.io+ username: ${{ github.actor }}+ password: ${{ secrets.GITHUB_TOKEN }}+- name: Prepare Dependenciesrun: |make distdiff --git a/.goreleaser.yml b/.goreleaser.ymlindex d27eb245..53879e65 100644--- a/.goreleaser.yml+++ b/.goreleaser.yml@@ -37,14 +37,25 @@ archives:- LICENSEdockers:- -- goos: linux+ - goos: linuxgoarch: amd64ids:- listmonkimage_templates:- "listmonk/listmonk:latest"- "listmonk/listmonk:{{ .Tag }}"+ - "ghcr.io/knadh/{{ .ProjectName }}:latest"+ - "ghcr.io/knadh/{{ .ProjectName }}:{{ .Tag }}"+ build_flag_templates:+ - --platform=linux/amd64+ - --label=org.opencontainers.image.title={{ .ProjectName }}+ - --label=org.opencontainers.image.description={{ .ProjectName }}+ - --label=org.opencontainers.image.url=https://github.com/knadh/{{ .ProjectName }}+ - --label=org.opencontainers.image.source=https://github.com/knadh/{{ .ProjectName }}+ - --label=org.opencontainers.image.version={{ .Version }}+ - --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}+ - --label=org.opencontainers.image.revision={{ .FullCommit }}+ - --label=org.opencontainers.image.licenses=AGPL-3.0dockerfile: Dockerfileextra_files:- config.toml.sample