Skip to content

Commit

Permalink
Docker env vars for release.yml (#1038)
Browse files Browse the repository at this point in the history
* release: add docker env vars to release.yaml

* Add missing } back in
  • Loading branch information
Chickensoupwithrice authored Apr 25, 2024
1 parent bb04f2f commit 200dadc
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ requirements:
- name: "GitHub cli exists"
cmd: "which gh"
fixInstructions: "install GitHub cli"
- name: "Docker username"
env: "DOCKER_USERNAME"
- name: "Docker password"
env: "DOCKER_PASSWORD"
- name: "GH auth status"
cmd: "gh auth status"
fixInstructions: "gh auth login"
Expand All @@ -27,12 +31,12 @@ internal:
cmd: |
set -eu
registry=us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-internal
sg ops update-images --registry ${registry} --kind compose --pin-tag {{inputs.server.tag}} docker-compose/
sg ops update-images --registry ${registry} --kind compose --pin-tag {{inputs.server.tag}} --docker-username $DOCKER_USERNAME --docker-password $DOCKER_PASSWORD docker-compose/
- name: docker(shell):tags
cmd: |
set -eu
registry=us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-internal
sg ops update-images --registry ${registry} --kind shell --pin-tag {{inputs.server.tag}} pure-docker/
sg ops update-images --registry ${registry} --kind shell --pin-tag {{inputs.server.tag}} --docker-username $DOCKER_USERNAME --docker-password $DOCKER_PASSWORD pure-docker/
- name: "git:branch"
cmd: |
set -eu
Expand All @@ -53,12 +57,12 @@ internal:
cmd: |
set -eu
registry=us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-internal
sg ops update-images --registry ${registry} --kind compose --pin-tag {{inputs.server.tag}} docker-compose/
sg ops update-images --registry ${registry} --kind compose --pin-tag {{inputs.server.tag}} --docker-username $DOCKER_USERNAME --docker-password $DOCKER_PASSWORD docker-compose/
- name: docker(shell):tags
cmd: |
set -eu
registry=us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-internal
sg ops update-images --registry ${registry} --kind shell --pin-tag {{inputs.server.tag}} pure-docker/
sg ops update-images --registry ${registry} --kind shell --pin-tag {{inputs.server.tag}} --docker-username $DOCKER_USERNAME --docker-password $DOCKER_PASSWORD pure-docker/
- name: "git:branch"
cmd: |
set -eu
Expand All @@ -79,12 +83,12 @@ internal:
cmd: |
set -eu
registry=us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-internal
sg ops update-images --registry ${registry} --kind compose --pin-tag {{inputs.server.tag}} docker-compose/
sg ops update-images --registry ${registry} --kind compose --pin-tag {{inputs.server.tag}} --docker-username $DOCKER_USERNAME --docker-password $DOCKER_PASSWORD docker-compose/
- name: docker(shell):tags
cmd: |
set -eu
registry=us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-internal
sg ops update-images --registry ${registry} --kind shell --pin-tag {{inputs.server.tag}} pure-docker/
sg ops update-images --registry ${registry} --kind shell --pin-tag {{inputs.server.tag}} --docker-username $DOCKER_USERNAME --docker-password $DOCKER_PASSWORD pure-docker/
- name: "git:branch"
cmd: |
set -eu
Expand Down Expand Up @@ -137,12 +141,12 @@ promoteToPublic:
cmd: |
set -eu
registry=index.docker.io/sourcegraph
sg ops update-images --registry ${registry} --kind compose --pin-tag {{inputs.server.tag}} docker-compose/
sg ops update-images --registry ${registry} --kind compose --pin-tag {{inputs.server.tag}} --docker-username $DOCKER_USERNAME --docker-password $DOCKER_PASSWORD docker-compose/
- name: docker(shell):tags
cmd: |
set -eu
registry=index.docker.io/sourcegraph
sg ops update-images --registry ${registry} --kind shell --pin-tag {{inputs.server.tag}} pure-docker/
sg ops update-images --registry ${registry} --kind shell --pin-tag {{inputs.server.tag}} --docker-username $DOCKER_USERNAME --docker-password $DOCKER_PASSWORD pure-docker/
- name: "git:branch"
cmd: |
set -eu
Expand Down

0 comments on commit 200dadc

Please sign in to comment.