Skip to content

Commit 1b12aae

Browse files
author
xavier
committed
mover repo working
1 parent 176a853 commit 1b12aae

24 files changed

+110
-598
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
deb_release.deb
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM gcr.io/cloud-builders/gcloud
2+
3+
ARG RUBY_PATH=/usr/local
4+
ARG RUBY_VERSION=2.6.3
5+
ENV PATH $RUBY_PATH/bin:$PATH
6+
7+
RUN apt-get update && apt-get install -y git curl gcc make wget \
8+
libssl-dev zlib1g-dev build-essential libreadline-dev
9+
10+
RUN git clone git://github.com/rbenv/ruby-build.git \
11+
$RUBY_PATH/plugins/ruby-build \
12+
&& $RUBY_PATH/plugins/ruby-build/install.sh
13+
RUN ruby-build $RUBY_VERSION $RUBY_PATH
14+
15+
RUN gem install bundler -v 2.1.4
16+
17+
RUN mkdir /app
18+
WORKDIR /app
19+
20+
ADD Gemfile Gemfile.lock /app/
21+
RUN bundle update --bundler
22+
RUN bundle
23+
COPY . /app
24+
25+
ENTRYPOINT []
26+
CMD ["/app/docker_cmd.sh"]
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
addressable (2.8.0)
5+
public_suffix (>= 2.0.2, < 5.0)
6+
faraday (1.6.0)
7+
faraday-em_http (~> 1.0)
8+
faraday-em_synchrony (~> 1.0)
9+
faraday-excon (~> 1.1)
10+
faraday-httpclient (~> 1.0.1)
11+
faraday-net_http (~> 1.0)
12+
faraday-net_http_persistent (~> 1.1)
13+
faraday-patron (~> 1.0)
14+
faraday-rack (~> 1.0)
15+
multipart-post (>= 1.2, < 3)
16+
ruby2_keywords (>= 0.0.4)
17+
faraday-em_http (1.0.0)
18+
faraday-em_synchrony (1.0.0)
19+
faraday-excon (1.1.0)
20+
faraday-httpclient (1.0.1)
21+
faraday-net_http (1.0.1)
22+
faraday-net_http_persistent (1.2.0)
23+
faraday-patron (1.0.0)
24+
faraday-rack (1.0.0)
25+
multipart-post (2.1.1)
26+
octokit (4.21.0)
27+
faraday (>= 0.9)
28+
sawyer (~> 0.8.0, >= 0.5.3)
29+
public_suffix (4.0.6)
30+
ruby2_keywords (0.0.5)
31+
sawyer (0.8.2)
32+
addressable (>= 2.3.5)
33+
faraday (> 0.8, < 2.0)
34+
35+
PLATFORMS
36+
ruby
37+
38+
DEPENDENCIES
39+
octokit (~> 4.0)
40+
41+
RUBY VERSION
42+
ruby 2.6.3p62
43+
44+
BUNDLED WITH
45+
2.1.4
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
timeout: 20000s
2+
3+
substitutions:
4+
_IMG_FQDN: "us-central1-docker.pkg.dev/nectar-bazaar/private/desktop-client-release-mover"
5+
6+
images:
7+
- "${_IMG_FQDN}:latest"
8+
9+
steps:
10+
- id: "Pull previous"
11+
name: gcr.io/cloud-builders/docker
12+
waitFor: []
13+
entrypoint: "bash"
14+
args:
15+
- "-c"
16+
- |-
17+
docker pull ${_IMG_FQDN}:latest || exit 0;
18+
19+
- id: "Build image"
20+
name: gcr.io/cloud-builders/docker
21+
waitFor:
22+
- "Pull previous"
23+
args:
24+
- "build"
25+
- "."
26+
- "--cache-from"
27+
- "${_IMG_FQDN}:latest"
28+
- "-t"
29+
- "${_IMG_FQDN}:latest"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
cd /app
3+
bundle exec ruby main.rb

desktop-client-releaser/main.rb renamed to desktop-client-release-mover/main.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@
33
REPO_ID = "nmachine-io/consumer-frontend-desktop"
44
GH_SEC_NAME = "gh-token-delete-me-later"
55
DEB_NAME = "deb_release.deb"
6+
7+
GET_SEC_PREFIX = "gcloud secrets versions access latest"
68
WGET_PREFIX = "wget -q --auth-no-challenge --header='Accept:application/octet-stream'"
79
BUCKET_PREFIX = "gs://nmachine-public/releases"
810

9-
RELEASE_TYPES = [
10-
{ extension: ".deb", fname: DEB_NAME }
11-
]
11+
RELEASE_TYPES = [{ extension: ".deb", fname: DEB_NAME }]
1212

13-
token = `gcloud secrets versions access latest --secret=#{GH_SEC_NAME}`
13+
token = `#{GET_SEC_PREFIX} --secret=#{GH_SEC_NAME} `
14+
puts "tok #{token}"
1415
client = Octokit::Client.new(access_token: token)
1516

16-
releases = client.releases(REPO_ID, query: { type: 'created_at', sort: 'asc' })
17+
releases = client.releases(REPO_ID, query: { type: 'published_at', sort: 'desc' })
1718
latest_release = releases.first
1819

1920
if latest_release

desktop-client-releaser/cloudbuild.yaml

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

ice-kream/ice-kream-kama/.env

Whitespace-only changes.

ice-kream/ice-kream-kama/configs/operations/install-operation.yaml

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

ice-kream/ice-kream-kama/configs/variables/categories.yaml

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

ice-kream/ice-kream-kama/configs/variables/preset.yaml

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

ice-kream/ice-kream-kama/configs/view-adapters/backend/detail-adapter.yaml

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

ice-kream/ice-kream-kama/configs/view-adapters/backend/predicates.yaml

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

0 commit comments

Comments
 (0)