Browse Source

Rename Unified to Lite (#426)

pull/408/head
Vince Grassia 4 weeks ago committed by GitHub
parent
commit
3dff10d350
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 24
      .github/workflows/release.yml
  2. 2
      bitwarden-lite/docker-compose.yml

24
.github/workflows/release.yml

@ -342,14 +342,14 @@ jobs:
run: | run: |
skopeo --version skopeo --version
skopeo login "$_AZ_REGISTRY" -u 00000000-0000-0000-0000-000000000000 -p "$(az acr login --expose-token --name "${_AZ_REGISTRY%.azurecr.io}" | jq -r .accessToken)" skopeo login "$_AZ_REGISTRY" -u 00000000-0000-0000-0000-000000000000 -p "$(az acr login --expose-token --name "${_AZ_REGISTRY%.azurecr.io}" | jq -r .accessToken)"
skopeo copy --all "docker://$_AZ_REGISTRY/self-host:beta" "docker://ghcr.io/bitwarden/self-host:$_RELEASE_VERSION" skopeo copy --all "docker://$_AZ_REGISTRY/lite:beta" "docker://ghcr.io/bitwarden/lite:$_RELEASE_VERSION"
skopeo copy --all "docker://$_AZ_REGISTRY/self-host:beta" "docker://ghcr.io/bitwarden/self-host:beta" # TODO: Delete after GA skopeo copy --all "docker://$_AZ_REGISTRY/lite:beta" "docker://ghcr.io/bitwarden/lite:beta" # TODO: Delete after GA
# skopeo copy --all "docker://$_AZ_REGISTRY/self-host:beta" "docker://ghcr.io/bitwarden/self-host:latest" # TODO: uncomment after GA # skopeo copy --all "docker://$_AZ_REGISTRY/lite:beta" "docker://ghcr.io/bitwarden/lite:latest" # TODO: uncomment after GA
- name: Sign image with Cosign - name: Sign image with Cosign
run: | run: |
cosign sign --yes "ghcr.io/bitwarden/self-host:$_RELEASE_VERSION" cosign sign --yes "ghcr.io/bitwarden/lite:$_RELEASE_VERSION"
cosign sign --yes "ghcr.io/bitwarden/self-host:latest" cosign sign --yes "ghcr.io/bitwarden/lite:latest"
- name: Log out of skopeo and ghcr.io - name: Log out of skopeo and ghcr.io
run: | run: |
@ -363,25 +363,25 @@ jobs:
- name: Pull latest project image - name: Pull latest project image
run: | run: |
if [[ "${{ inputs.release_type }}" == "Dry Run" ]]; then if [[ "${{ inputs.release_type }}" == "Dry Run" ]]; then
docker pull "$_AZ_REGISTRY/self-host:dev" docker pull "$_AZ_REGISTRY/lite:dev"
else else
docker pull "$_AZ_REGISTRY/self-host:beta" docker pull "$_AZ_REGISTRY/lite:beta"
fi fi
- name: Tag version and latest - name: Tag version and latest
run: | run: |
if [[ "${{ inputs.release_type }}" == "Dry Run" ]]; then if [[ "${{ inputs.release_type }}" == "Dry Run" ]]; then
docker tag "$_AZ_REGISTRY/self-host:dev" "$_AZ_REGISTRY/self-host:dryrun" docker tag "$_AZ_REGISTRY/lite:dev" "$_AZ_REGISTRY/lite:dryrun"
else else
docker tag "$_AZ_REGISTRY/self-host:beta" "$_AZ_REGISTRY/self-host:$_RELEASE_VERSION" docker tag "$_AZ_REGISTRY/lite:beta" "$_AZ_REGISTRY/lite:$_RELEASE_VERSION"
docker tag "$_AZ_REGISTRY/self-host:beta" "$_AZ_REGISTRY/self-host:latest" docker tag "$_AZ_REGISTRY/lite:beta" "$_AZ_REGISTRY/lite:latest"
fi fi
- name: Push version and latest image - name: Push version and latest image
if: ${{ inputs.release_type != 'Dry Run' }} if: ${{ inputs.release_type != 'Dry Run' }}
run: | run: |
docker push "$_AZ_REGISTRY/self-host:$_RELEASE_VERSION" docker push "$_AZ_REGISTRY/lite:$_RELEASE_VERSION"
docker push "$_AZ_REGISTRY/self-host:latest" docker push "$_AZ_REGISTRY/lite:latest"
- name: Log out of Docker - name: Log out of Docker
run: docker logout "$_AZ_REGISTRY" run: docker logout "$_AZ_REGISTRY"

2
bitwarden-lite/docker-compose.yml

@ -6,7 +6,7 @@ services:
- db - db
env_file: env_file:
- settings.env - settings.env
image: ${REGISTRY:-ghcr.io/bitwarden}/self-host:${TAG:-beta} image: ${REGISTRY:-ghcr.io/bitwarden}/lite:${TAG:-beta}
restart: always restart: always
ports: ports:
- "80:8080" - "80:8080"

Loading…
Cancel
Save