Commit 45c5483f authored by Michael Killough's avatar Michael Killough
Browse files

Tag image as staging.

parent 9a939c3e
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ jobs:

    - run:
        name: Push the image
        command: docker push $(./image)
        command: docker push "${CIRCLE_PROJECT_REPONAME}:${CIRCLE_SHA1}"

  push_staging:
    <<: *defaults
@@ -100,9 +100,13 @@ jobs:
        name: Log in to Docker repository
        command: docker login -u ${DOCKER_USER} -p ${DOCKER_PASS}

    - run:
        name: Tag the Docker image as 'staging'
        command: docker tag  "${CIRCLE_PROJECT_REPONAME}:${CIRCLE_SHA1}" "${CIRCLE_PROJECT_REPONAME}:staging"

    - run:
        name: Push the image
        command: docker push $(./image):staging
        command: docker push "${CIRCLE_PROJECT_REPONAME}:staging"

master_only: &master_only
  filters: