Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
6cba71f
feat: add CI to build containers
thefirstofthe300 May 11, 2022
3ee8246
fix: CircleCI file name
thefirstofthe300 May 11, 2022
cf644b0
Updated config.yml
thefirstofthe300 May 11, 2022
4da5c3c
Updated config.yml
thefirstofthe300 May 11, 2022
01e0aba
fix: one more problem with Circle
thefirstofthe300 May 11, 2022
d8a5e2b
feat: do not run one workflow on certain branches
thefirstofthe300 May 11, 2022
5da1305
feat: properly login to Docker Hub
thefirstofthe300 May 11, 2022
45069ec
fix: issue with jobs configuration
thefirstofthe300 May 11, 2022
bd36ab5
fix: TTY error on docker login
thefirstofthe300 May 11, 2022
5c7f474
fix: EOF error on docker login
thefirstofthe300 May 11, 2022
a01ff10
Updated config.yml
thefirstofthe300 May 11, 2022
1f6fdd8
feat: tidy up CircleCI config
thefirstofthe300 May 11, 2022
e0380e7
Updated config.yml
thefirstofthe300 May 11, 2022
70ff030
Updated config.yml
thefirstofthe300 May 11, 2022
44c13e5
feat: build with goreleaser
thefirstofthe300 May 12, 2022
744e2ca
Updated config.yml
thefirstofthe300 May 12, 2022
c6febb9
Updated config.yml
thefirstofthe300 May 12, 2022
9e8c0c7
Updated config.yml
thefirstofthe300 May 12, 2022
865ca3a
Updated config.yml
thefirstofthe300 May 12, 2022
a10d354
feat: set GITHUB_TOKEN
thefirstofthe300 May 12, 2022
43bee63
feat: set GITHUB_TOKEN properly
thefirstofthe300 May 12, 2022
0320e84
feat: set GITHUB_TOKEN properly
thefirstofthe300 May 12, 2022
442ad32
fix: do not push releases to Github
thefirstofthe300 May 12, 2022
0a395e1
fix: bad docker command
thefirstofthe300 May 12, 2022
3e76614
fix: bad docker command
thefirstofthe300 May 12, 2022
fa33c20
fix: bad docker command
thefirstofthe300 May 12, 2022
e42ce71
fix: bad docker command
thefirstofthe300 May 12, 2022
26a41d0
fix: bad docker command
thefirstofthe300 May 12, 2022
ac52182
Update Dockerfile.goreleaser
thefirstofthe300 Jun 13, 2022
d400dbb
build(deps): bump google.golang.org/grpc from 1.29.1 to 1.56.3
dependabot[bot] Jul 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
82 changes: 82 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
version: 2.1
orbs:
gor: ory/goreleaser@0.1.38
workflows:
test:
jobs:
- test:
context: docker-hub-login
release:
jobs:
- release:
context:
- docker-hub-login
- github-login
filters:
branches:
ignore: /.*/
tags:
only: /^v\d+\.\d+\.\d+$/
commands:
install_goreleaser:
description: "Installs the goreleaser binary to ~/bin"
parameters:
version:
type: string
default: "v1.7.0"
steps:
- run:
name: Install goreleaser
command: |
dlURL="https://github.com/goreleaser/goreleaser/releases/download/<< parameters.version >>/goreleaser_Linux_x86_64.tar.gz"
curl -sSL $dlURL | $SUDO tar -xz -C ~/bin goreleaser
jobs:
test:
docker:
- image: 'cimg/go:1.18'
steps:
- checkout
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.mod" }}-{{ checksum "go.sum" }}
- go-mod-v1-{{ checksum "go.mod" }}
- go-mod-v1
- run:
name: Download Dependancies
command: go mod download
- save_cache:
key: go-mod-v1-{{ checksum "go.mod" }}-{{ checksum "go.sum" }}
paths:
- ~/go/pkg/mod
- install_goreleaser
- run:
name: Run tests
command: |
~/bin/goreleaser release --snapshot --skip-publish --rm-dist
release:
docker:
- image: 'cimg/go:1.18'
steps:
- checkout
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.mod" }}-{{ checksum "go.sum" }}
- go-mod-v1-{{ checksum "go.mod" }}
- go-mod-v1
- run:
name: Download Dependancies
command: go mod download
- save_cache:
key: go-mod-v1-{{ checksum "go.mod" }}-{{ checksum "go.sum" }}
paths:
- ~/go/pkg/mod
- install_goreleaser
- setup_remote_docker:
docker_layer_caching: false
- run:
name: Perform release
command: |
~/bin/goreleaser release --skip-publish
docker login --username="${CONTEXT_GREMLIN_DOCKER_USERNAME}" --password="${CONTEXT_GREMLIN_DOCKER_PASSWORD}"
docker build -f Dockerfile.goreleaser -t gremlin/aws-encryption-provider:${CIRCLE_TAG} .
docker push gremlin/aws-encryption-provider:${CIRCLE_TAG}
29 changes: 0 additions & 29 deletions .github/ISSUE_TEMPLATE/bug-report.md

This file was deleted.

11 changes: 0 additions & 11 deletions .github/ISSUE_TEMPLATE/enhancement.md

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/ci.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/release.yaml

This file was deleted.

7 changes: 7 additions & 0 deletions .goreleaser.yml → .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ builds:
goos:
- linux
ldflags: -s -w -X sigs.k8s.io/aws-encryption-provider/pkg/version.Version={{.Version}} -X sigs.k8s.io/aws-encryption-provider/pkg/version.Commit={{.Commit}} -X sigs.k8s.io/aws-encryption-provider/pkg/version.Date={{.Date}}
- id: grpcclient
binary: grpcclient
dir: cmd/client
env:
- CGO_ENABLED=0
goos:
- linux
checksum:
name_template: 'checksums.txt'
changelog:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,20 @@
# Copyright 2018 The Prometheus Authors
# Copyright 2018 The Kubernetes Authors.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

include Makefile.common
FROM golang:1.18-alpine AS build
RUN apk --no-cache update && \
apk --no-cache add ca-certificates && \
rm -rf /var/cache/apk/*

%/.unpacked: %.ttar
@echo ">> extracting fixtures"
./ttar -C $(dir $*) -x -f $*.ttar
touch $@

update_fixtures:
rm -vf fixtures/.unpacked
./ttar -c -f fixtures.ttar fixtures/

.PHONY: build
build:

.PHONY: test
test: fixtures/.unpacked common-test
FROM busybox AS aws-encryption-provider
COPY --from=build /etc/ssl/certs/ /etc/ssl/certs/
COPY dist/aws-encryption-provider_linux_amd64/aws-encryption-provider /aws-encryption-provider
ENTRYPOINT ["/aws-encryption-provider"]
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ require (
github.com/golangci/golangci-lint v1.41.1
github.com/prometheus/client_golang v1.7.1
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.7.0
github.com/stretchr/testify v1.8.3
go.uber.org/zap v1.13.0
golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1
google.golang.org/grpc v1.29.1
golang.org/x/time v0.3.0
google.golang.org/grpc v1.56.3
k8s.io/apiserver v0.0.0-20190515064100-fc28ef5782df
)

Expand Down
Loading