Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
feat(ci): publish docker images for staging branch
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Apr 25, 2023
1 parent 0f90a29 commit 58de98d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,14 @@ Official Docker images are provided at [hub.docker.com/r/ipfs/bifrost-gateway](h

- Releases
- `latest` and `release` always point at the latest release
- `vN.N.N` point at a specific [release tag](https://github.com/ipfs/bifrost-gateway/releases)
- `vN.N.N` point at a specific [release tag](https://github.com/ipfs/bifrost-gateway/releases)
- Developer builds
- `main-latest` always points at the `HEAD` of the `main` branch
- `main-YYYY-DD-MM-GITSHA` points at a specific commit from the `main` branch

- `main-YYYY-DD-MM-GITSHA` points at a specific commit from the `main` branch
- Experimental, unstable builds
- `staging-latest` always points at the `HEAD` of the `staging` branch
- `staging-YYYY-DD-MM-GITSHA` points at a specific commit from the `main` branch
- This tag is used by developers for internal testing, not intended for end users

When using Docker, make sure to pass necessary config via `-e`:
```console
Expand Down
4 changes: 4 additions & 0 deletions docker/get-docker-tags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ elif [ "$GIT_BRANCH" = "main" ]; then
echoImageName "main-${BUILD_NUM}-${GIT_SHA1_SHORT}"
echoImageName "main-latest"

elif [ "$GIT_BRANCH" = "staging" ]; then
echoImageName "staging-${BUILD_NUM}-${GIT_SHA1_SHORT}"
echoImageName "staging-latest"

else
echo "Nothing to do. No docker tag defined for branch: $GIT_BRANCH, tag: $GIT_TAG"

Expand Down

0 comments on commit 58de98d

Please sign in to comment.