mirror of
https://github.com/dani-garcia/vaultwarden
synced 2024-11-12 13:01:51 +01:00
467ecfdc99
- Added support for Quay.io - Added support for GHCR.io To enable support for these container image registries the following needs to be added. As `Actions secrets and variables` - `Secrets` - `DOCKERHUB_TOKEN` and `DOCKERHUB_USERNAME` - `QUAY_TOKEN` and `QUAY_USERNAME` As `Actions secrets and variables` - `Variables` - `Repository Variables` - `DOCKERHUB_REPO` - `GHCR_REPO` - `QUAY_REPO` The `DOCKERHUB_REPO` currently configured in `Secrets` can be removed if wanted, probably best after this PR has been merged. If one of the vars/secrets are not configured it will skip that specific registry!
28 lines
656 B
Bash
Executable file
28 lines
656 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
# If requested, print some environment info for troubleshooting.
|
|
if [[ -n "${DOCKER_HUB_DEBUG}" ]]; then
|
|
id
|
|
pwd
|
|
df -h
|
|
env
|
|
docker info
|
|
docker version
|
|
fi
|
|
|
|
# Install build dependencies.
|
|
deps=(
|
|
jq
|
|
)
|
|
apt-get update
|
|
apt-get install -y "${deps[@]}"
|
|
|
|
# Docker Hub uses a shallow clone and doesn't fetch tags, which breaks some
|
|
# Git operations that we perform later, so fetch the complete history and
|
|
# tags first. Note that if the build is cached, the clone may have been
|
|
# unshallowed already; if so, unshallowing will fail, so skip it.
|
|
if [[ -f .git/shallow ]]; then
|
|
git fetch --unshallow --tags
|
|
fi
|