Travis multiple docker container deployment

In my travis.yml, I am building multiple docker images as below

docker build -t us.gcr.io/$DOCKER_IMAGE_NAMESPACE/$DOCKER_IMAGE_JOB_1:$TRAVIS_COMMIT -f projects/test1/Dockerfile .

docker build -t us.gcr.io/$DOCKER_IMAGE_NAMESPACE/$DOCKER_IMAGE_JOB_2:$TRAVIS_COMMIT -f projects/test2/Dockerfile .

How does the deployment work. Do I need to have 2 separate deployment steps for each of these docker images as below.

deploy:
  - provider: gcs
    access_key_id: 
    secret_access_key:
    bucket: 
    skip_cleanup: true
    upload-dir: 
    local-dir: 
    on:
      branch:
      - master
      - release

Any example or suggestions appreciated !!!

Docker images are not single files. To upload them anywhere else than a Docker hub, you need to first docker save them into tarballs and upload those.

As per Google Cloud Storage (GCS) Deployment - Travis CI, Travis’ GCS deployment provider uploads all files from a specific local directory. So you need to place the tarballs into some dedicated directory and specify it as local-dir.

Imprint