Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to buildpacks instead of Dockerfile #12

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 29 additions & 11 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
project_name: ci-result-to-slack
env:
- BP_OCI_TITLE={{ .ProjectName }}
- BP_OCI_AUTHORS=Justin Harringa <[email protected]>
- BP_OCI_DESCRIPTION=Send your CI result to Slack upon pipeline completion
- BP_OCI_URL=https://github.com/salesforce/ci-result-to-slack
- BP_OCI_SOURCE=https://github.com/salesforce/ci-result-to-slack
- BP_OCI_DOCUMENTATION=https://github.com/salesforce/ci-result-to-slack/blob/main/README.md
- BP_OCI_REVISION={{ .FullCommit }}
- BP_OCI_VERSION={{ .Version }}
- BP_OCI_CREATED={{ time "2006-01-02T15:04:05Z07:00" }}
- BP_OCI_LICENSES=BSD-3-Clause
- BP_OCI_VENDOR=Salesforce.com
builds:
- env: [CGO_ENABLED=0]
- env:
- CGO_ENABLED=0
main: ./cmd/ci-result-to-slack
goos:
- linux
Expand All @@ -11,16 +24,21 @@ builds:
- arm64
dockers:
- image_templates: ["ghcr.io/salesforce/ci-result-to-slack:{{ .Version }}"]
dockerfile: Dockerfile
use: buildpacks
build_flag_templates:
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/salesforce/ci-result-to-slack
- --label=org.opencontainers.image.source=https://github.com/salesforce/ci-result-to-slack
- --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=BSD-3-Clause
- --env=BP_OCI_TITLE
- --env=BP_OCI_AUTHORS
- --env=BP_OCI_DESCRIPTION
- --env=BP_OCI_URL
- --env=BP_OCI_SOURCE
- --env=BP_OCI_DOCUMENTATION
- --env=BP_OCI_VERSION
- --env=BP_OCI_VENDOR
- --env=BP_OCI_CREATED
- --env=BP_OCI_REVISION
- --env=BP_OCI_LICENSES
- --env=BP_OCI_URL
- --buildpack=gcr.io/paketo-buildpacks/image-labels
nfpms:
- maintainer: Justin Harringa <[email protected]>
description: Send your CI result to Slack upon pipeline completion
Expand All @@ -29,4 +47,4 @@ nfpms:
formats:
- deb
- rpm
- apk
- apk
5 changes: 0 additions & 5 deletions Dockerfile

This file was deleted.

9 changes: 9 additions & 0 deletions project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[project]
id = "com.salesforce.ci-result-to-slack"
name = "ci-result-to-slack"
authors = ["Justin Harringa"]
documentation-url = "https://github.com/salesforce/ci-result-to-slack#readme"
source-url = "https://github.com/salesforce/ci-result-to-slack"

[[project.licenses]]
type = "BSD-3-Clause"