Skip to content

Commit

Permalink
follow advice from an evil martian
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingdon Barrett committed Dec 14, 2021
1 parent a0fe59d commit d74bf51
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 23 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/kuby.yml
Expand Up @@ -16,6 +16,8 @@ jobs:

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
install: true

# - name: Cache Docker layers
# uses: actions/cache@v2
Expand Down Expand Up @@ -46,8 +48,13 @@ jobs:
uses: crazy-max/ghaction-github-runtime@v1

- name: Kuby build (and push)
#run: bundle exec kuby -e production build -- --cache-from=type=local,src=/tmp/.buildx-cache --cache-to=type=local,dest=/tmp/.buildx-cache-new,mode=max --push
run: bundle exec kuby -e production build -- --push
run: |
bundle exec kuby -e production build --only app -- \
--cache-from=type=gha,scope=app --cache-to=type=gha,scope=app,mode=max \
--push
bundle exec kuby -e production build --only assets -- \
--cache-from=type=gha,scope=assets --cache-to=type=gha,scope=assets,mode=max \
--push
env:
CR_PAT: ${{ secrets.GITHUB_TOKEN }}
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -3,7 +3,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '2.7.5'

gem 'kuby-core', '~> 0.16.0.a', github: 'kingdonb/kuby-core'
gem 'kuby-core', '~> 0.15.0' # , github: 'kingdonb/kuby-core'
gem 'kuby-digitalocean', '< 1.0'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
Expand Down
41 changes: 21 additions & 20 deletions Gemfile.lock
@@ -1,21 +1,3 @@
GIT
remote: https://github.com/kingdonb/kuby-core.git
revision: 8e834a04228a774aeccbe469c07798e12e2ff0b5
specs:
kuby-core (0.16.0.pre.alpha1)
colorize (~> 0.8)
docker-remote (~> 0.6)
gli (~> 2.0)
helm-cli (~> 0.3)
krane (>= 1.1.4, < 2.0)
kube-dsl (~> 0.4)
kubernetes-cli (~> 0.3)
kuby-cert-manager (>= 0.3)
kuby-kube-db (>= 0.6)
railties (>= 5.1)
rouge (~> 3.0)
sorbet-runtime-stub (~> 0.2)

GEM
remote: https://rubygems.org/
specs:
Expand Down Expand Up @@ -143,7 +125,13 @@ GEM
signet (~> 0.15)
helm-cli (0.3.0)
helm-rb (~> 0.1)
helm-rb (0.2.0-aarch64-linux)
helm-rb (0.2.0-arm-linux)
helm-rb (0.2.0-arm64-darwin)
helm-rb (0.2.0-arm64-linux)
helm-rb (0.2.0-ppc64le-linux)
helm-rb (0.2.0-s390x-linux)
helm-rb (0.2.0-x86_64-darwin)
helm-rb (0.2.0-x86_64-linux)
http (4.4.1)
addressable (~> 2.3)
Expand Down Expand Up @@ -197,6 +185,19 @@ GEM
kuby-cert-manager (0.3.0)
helm-cli (~> 0.1)
kube-dsl (~> 0.1)
kuby-core (0.15.0)
colorize (~> 0.8)
docker-remote (~> 0.6)
gli (~> 2.0)
helm-cli (~> 0.3)
krane (>= 1.1.4, < 2.0)
kube-dsl (~> 0.4)
kubernetes-cli (~> 0.3)
kuby-cert-manager (>= 0.3)
kuby-kube-db (>= 0.6)
railties (>= 5.1)
rouge (~> 3.0)
sorbet-runtime-stub (~> 0.2)
kuby-digitalocean (0.4.3)
droplet_kit (~> 3.5)
kube-dsl (~> 0.1)
Expand Down Expand Up @@ -231,7 +232,7 @@ GEM
racc (~> 1.4)
nokogiri (1.12.5-arm64-darwin)
racc (~> 1.4)
oj (3.13.9)
oj (3.13.10)
os (1.1.4)
pg (1.2.3)
public_suffix (4.0.6)
Expand Down Expand Up @@ -336,7 +337,7 @@ DEPENDENCIES
bootsnap (>= 1.4.4)
byebug
jbuilder (~> 2.7)
kuby-core (~> 0.16.0.a)!
kuby-core (~> 0.15.0)
kuby-digitalocean (< 1.0)
listen (~> 3.3)
pg (~> 1.1)
Expand Down

0 comments on commit d74bf51

Please sign in to comment.