Skip to content

Commit

Permalink
chore: push manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
hongaar committed Apr 7, 2019
1 parent 2c5553a commit 127ed02
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
13 changes: 11 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,14 @@ os:

language: shell

script:
- bash build.sh
stages:
- name: build
- name: deploy
if: os = linux

jobs:
include:
- stage: build
script: bash build.sh
- stage: deploy
script: bash manifest.sh
14 changes: 10 additions & 4 deletions manifest.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
docker -D manifest create "exivity/base:latest" `
"exivity/base:linux" `
#!/usr/bin/env bash

# @todo: verify experimental is enabled
# echo '{ "experimental": "enabled" }' > ~/.docker/config.json

docker -D manifest create "exivity/base:latest" \
"exivity/base:linux" \
"exivity/base:windows"
docker manifest annotate "exivity/base:latest" "exivity/base:linux" --os linux --arch amd64
docker manifest annotate "exivity/base:latest" "exivity/base:windows" --os windows --arch amd64
# @todo: is this needed?
# docker manifest annotate "exivity/base:latest" "exivity/base:linux" --os linux --arch amd64
# docker manifest annotate "exivity/base:latest" "exivity/base:windows" --os windows --arch amd64
docker manifest push "exivity/base:latest"

0 comments on commit 127ed02

Please sign in to comment.