Skip to content

Commit 66eccda

Browse files
author
Julián Berbel Alt
committed
Replace pull_worker script with rake task
1 parent 8be0b78 commit 66eccda

File tree

4 files changed

+8
-18
lines changed

4 files changed

+8
-18
lines changed

.github/workflows/test_and_deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
bundler: 2.1.4
1717
bundler-cache: true
1818
- name: Pull worker
19-
run: bin/pull_worker.sh
19+
run: bundle exec rake pull_worker
2020
- name: Run tests
2121
run: bundle exec rake
2222
- name: Deploy

Rakefile

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
require 'rspec/core/rake_task'
2+
require_relative 'lib/javascript_runner'
23

34
RSpec::Core::RakeTask.new(:spec)
45

6+
task :pull_worker do
7+
image = Mumukit.config.docker_image
8+
puts "Fetching image #{image}..."
9+
Docker::Image.create('fromImage' => image)
10+
end
11+
512
task :default => :spec

bin/.gitkeep

Whitespace-only changes.

bin/pull_worker.sh

-17
This file was deleted.

0 commit comments

Comments
 (0)