Skip to content
This repository was archived by the owner on Jun 29, 2023. It is now read-only.

Commit c280177

Browse files
authored
Remove Docker image and support scripts from this repo (#52)
This obviates the problem of figuring out what to do with LiveRamp official GCR locations in deploy.yaml for release.
1 parent 0ed508f commit c280177

File tree

7 files changed

+4
-184
lines changed

7 files changed

+4
-184
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -30,41 +30,10 @@ jobs:
3030
bundle exec rake test
3131
- name: build gem
3232
run: bundle exec rake build
33-
- name: build docker image
34-
run: docker build -t local-registry/kube_deploy_tools .
35-
### BELOW: ONLY RUN WHEN MASTER IS PUSHED ###
36-
- name: push kube_deploy_tools:latest
37-
if: github.ref == 'refs/heads/master'
38-
run: |
39-
export GOOGLE_APPLICATION_CREDENTIALS=$(mktemp)
40-
trap "rm -f ${GOOGLE_APPLICATION_CREDENTIALS}" EXIT
41-
echo -n "${GOOGLE_APPLICATION_CREDENTIALS_TEXT}" >"$GOOGLE_APPLICATION_CREDENTIALS"
42-
43-
gcloud auth configure-docker
44-
bundle exec kdt push --tag=latest kube_deploy_tools
45-
env:
46-
# keyfile for svc-jenkins service account
47-
GOOGLE_APPLICATION_CREDENTIALS_TEXT: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_TEXT }}
4833
- uses: toolmantim/release-drafter@v5.2.0
4934
if: github.ref == 'refs/heads/master'
5035
env:
5136
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52-
### BELOW: ONLY RUN WHEN A TAG IS PUSHED ###
53-
- name: push tagged docker container images to gcr
54-
if: startsWith(github.ref, 'refs/tags/')
55-
run: |
56-
export GOOGLE_APPLICATION_CREDENTIALS=$(mktemp)
57-
trap "rm -f ${GOOGLE_APPLICATION_CREDENTIALS}" EXIT
58-
echo -n "${GOOGLE_APPLICATION_CREDENTIALS_TEXT}" >"$GOOGLE_APPLICATION_CREDENTIALS"
59-
60-
VERSION=${GITHUB_REF##*/v}
61-
VERSION_X=${VERSION%%.*}
62-
gcloud auth configure-docker
63-
bundle exec kdt push --tag="$VERSION" kube_deploy_tools
64-
bundle exec kdt push --tag="$VERSION_X" kube_deploy_tools
65-
env:
66-
# keyfile for svc-jenkins service account
67-
GOOGLE_APPLICATION_CREDENTIALS_TEXT: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_TEXT }}
6837
- name: push tagged gem to github packages
6938
if: startsWith(github.ref, 'refs/tags/')
7039
run: |

Dockerfile

Lines changed: 0 additions & 86 deletions
This file was deleted.

deploy.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

docker-config.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

entrypoint

Lines changed: 0 additions & 43 deletions
This file was deleted.

kube_deploy_tools.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
1010
gem.description = "Kubernetes deploy tools for LiveRamp"
1111

1212
gem.authors = ['ops']
13-
gem.email = 'ops@***REMOVED***'
13+
gem.email = 'ops@liveramp.com'
1414
gem.homepage = 'https://github.com/LiveRamp/kube_deploy_tools'
1515
gem.license = 'MIT'
1616

spec/unit/deploy_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def parse(ops)
3636
KubeDeployTools::Shellrunner.shellrunner = shellrunner
3737

3838
allow(shellrunner).to receive(:run_call).with('gcloud', 'config', 'list', 'account', '--format', "value(core.account)") do
39-
['bill@***REMOVED***', '', double("status", success?: true)]
39+
['bill@liveramp.com', '', double("status", success?: true)]
4040
end
4141
end
4242

@@ -181,7 +181,7 @@ def parse(ops)
181181
expect(project_info[:git_commit]).to eq('deadbeefdeadbeef')
182182
expect(project_info[:git_project]).to eq('git@github.com:my-org/rspec_tests.git')
183183
expect(project_info[:time]).to be_a(DateTime)
184-
expect(project_info[:user]).to eq('bill@***REMOVED***')
184+
expect(project_info[:user]).to eq('bill@liveramp.com')
185185
expect(project_info[:'kubernetes-cluster']).to eq('kubectl bogus output')
186186
expect(project_info[:'kubernetes-cluster-name']).to eq('kubectl bogus output')
187187
end
@@ -196,7 +196,7 @@ def parse(ops)
196196
expect(project_info[:git_commit]).to be_nil
197197
expect(project_info[:git_project]).to be_nil
198198
expect(project_info[:time]).to be_a(DateTime)
199-
expect(project_info[:user]).to eq('bill@***REMOVED***')
199+
expect(project_info[:user]).to eq('bill@liveramp.com')
200200
expect(project_info[:'kubernetes-cluster']).to eq('kubectl bogus output')
201201
expect(project_info[:'kubernetes-cluster-name']).to eq('kubectl bogus output')
202202
end

0 commit comments

Comments
 (0)