github.com/thriqon/involucro@v1.1.3/invfile.lua (about) 1 2 local repo = 'involucro/tool' 3 4 inv.task('wrap-yourself') 5 .using('busybox:latest') 6 .run('mkdir', '-p', 'dist/tmp/') 7 .run('cp', 'involucro', 'dist/') 8 .wrap('dist').at('/') 9 .withConfig({entrypoint = {'/involucro'}}) 10 .as(repo .. ':latest') 11 .using('busybox:latest') 12 .run('rm', '-rf', 'dist') 13 14 15 if ENV.TRAVIS_PULL_REQUEST == "false" then 16 local tag = ENV.TRAVIS_TAG 17 18 if tag == "" then 19 tag = ENV.TRAVIS_BRANCH 20 end 21 22 if tag == "master" then 23 tag = "latest" 24 end 25 26 inv.task('upload-to-hub') 27 .tag(repo .. ':latest') 28 .as(repo .. ':' .. tag) 29 .push(repo .. ':' .. tag) 30 end