Skip to content

Commit

Permalink
Tag latest
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgibbins committed Feb 18, 2020
1 parent 48848f7 commit 5bfe1bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,12 @@ namespace :docker do
desc 'Push/publish the docker image'
task :push => [:build] do
image = '662373364858.dkr.ecr.eu-west-2.amazonaws.com/timgroup/stacks'

sh "docker tag stacks:#{version} #{image}:#{version}"
sh "docker push #{image}:#{version}"

sh "docker tag stacks:#{version} 662373364858.dkr.ecr.eu-west-2.amazonaws.com/timgroup/stacks:latest"
sh "docker tag stacks:#{version} stacks:latest"
sh "docker tag stacks:#{version} #{image}:latest"
sh "docker push #{image}:latest"
end
end

0 comments on commit 5bfe1bd

Please sign in to comment.