Skip to content

Commit

Permalink
add updated circleci regen'd bootstrap test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
diclophis committed Apr 10, 2024
1 parent c6a4855 commit 79e55d1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#generated via: polly generate --mirror=circleci --registry=ghcr.io/unhookd > .circleci/config.yml
---
workflows:
version: 2
Expand All @@ -14,9 +15,9 @@ jobs:
- run:
name: primary
command: |-
echo DEMO!!!!
bundle config set --local path vendor/bundle
bundle install
bundle exec rspec
polly help
docker:
- image: ghcr.io/unhookd/polly:3.0-rc1
- image: ghcr.io/unhookd/polly:4.0-rc-3
7 changes: 6 additions & 1 deletion bin/polly
Original file line number Diff line number Diff line change
Expand Up @@ -1730,6 +1730,8 @@ HEREDOC

desc "generate", "emits CI structure yaml"
option "mirror", :type => :string, :default => "dockerfile"
option "registry", :type => :string, :default => "polly-registry:23443/polly-registry"
#ghcr.io/unhookd
#TODO: cleanup these bits
#option "pipeline-fu", :type => :string, :default => "circleci"
#option "image-fu", :type => :string, :default => "buildkit"
Expand All @@ -1742,7 +1744,9 @@ HEREDOC

Kernel.eval(pollyfile_ruby, Polly::Generate.get_binding, pollyfile)

exe_image = "polly-registry:23443/polly-registry/#{exe.current_app}:latest"
#ghcr.io/unhookd/polly:3.0-rc1

exe_image = "#{options['registry']}/#{exe.current_app}:#{exe.current_branch}"

case options["mirror"]
when "circleci"
Expand All @@ -1756,6 +1760,7 @@ HEREDOC

when "dockerfile"
$stdout.write(Polly::Generate.read_output)

else
$stderr.puts "unknown option #{options.inspect}"
end
Expand Down

0 comments on commit 79e55d1

Please sign in to comment.