forked from dani-garcia/vaultwarden
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into dani-garcia-main
# Conflicts: # .github/workflows/release.yml
- Loading branch information
Showing
9 changed files
with
75 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Discourse forum for vaultwarden | ||
url: https://vaultwarden.discourse.group/ | ||
about: Use this forum to request features or get help with usage/configuration. | ||
- name: GitHub Discussions for vaultwarden | ||
url: https://github.com/dani-garcia/vaultwarden/discussions | ||
- name: GitHub Discussions for nekowarden | ||
url: https://github.com/nekowarden/server/discussions | ||
about: An alternative to the Discourse forum, if this is easier for you. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/bin/bash | ||
|
||
echo ">>> Building images..." | ||
|
||
source ./hooks/arches.sh | ||
|
||
if [[ -z "${SOURCE_COMMIT}" ]]; then | ||
# This var is typically predefined by Docker Hub, but it won't be | ||
# when testing locally. | ||
SOURCE_COMMIT="$(git rev-parse HEAD)" | ||
fi | ||
|
||
# Construct a version string in the style of `build.rs`. | ||
GIT_EXACT_TAG="$(git describe --tags --abbrev=0 --exact-match 2>/dev/null)" | ||
if [[ -n "${GIT_EXACT_TAG}" ]]; then | ||
SOURCE_VERSION="${GIT_EXACT_TAG}" | ||
else | ||
GIT_LAST_TAG="$(git describe --tags --abbrev=0)" | ||
SOURCE_VERSION="${GIT_LAST_TAG}-${SOURCE_COMMIT:0:8}" | ||
fi | ||
|
||
LABELS=( | ||
# https://github.com/opencontainers/image-spec/blob/master/annotations.md | ||
org.opencontainers.image.created="$(date --utc --iso-8601=seconds)" | ||
org.opencontainers.image.documentation="https://github.com/nekowarden/server/wiki" | ||
org.opencontainers.image.licenses="GPL-3.0-only" | ||
org.opencontainers.image.revision="${SOURCE_COMMIT}" | ||
org.opencontainers.image.source="${SOURCE_REPOSITORY_URL}" | ||
org.opencontainers.image.url="https://hub.docker.com/r/${DOCKER_REPO#*/}" | ||
org.opencontainers.image.version="${SOURCE_VERSION}" | ||
) | ||
LABEL_ARGS=() | ||
for label in "${LABELS[@]}"; do | ||
LABEL_ARGS+=(--label "${label}") | ||
done | ||
|
||
# Check if DOCKER_BUILDKIT is set, if so, use the Dockerfile.buildx as template | ||
if [[ -n "${DOCKER_BUILDKIT}" ]]; then | ||
buildx_suffix=.buildx | ||
fi | ||
|
||
set -ex | ||
|
||
for arch in "${arches[@]}"; do | ||
docker build \ | ||
"${LABEL_ARGS[@]}" \ | ||
-t "${DOCKER_REPO}:${DOCKER_TAG}-${arch}" \ | ||
-f docker/${arch}/Dockerfile${buildx_suffix}${distro_suffix} \ | ||
. | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters