Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Publish InstallCli image used for resetting admin password (#374)

Leendert de Borst71407cc86d36
diff --git a/.github/workflows/publish-docker-images.yml b/.github/workflows/publish-docker-images.yml
index a258bab39..6f5bc4130 100644
--- a/.github/workflows/publish-docker-images.yml
+++ b/.github/workflows/publish-docker-images.yml
@@ -1,3 +1,4 @@
+# This workflow will publish new Docker images to the GitHub Container Registry when a new release is published.
name: Publish Docker Images
on:
@@ -76,3 +77,11 @@ jobs:
file: Dockerfile
push: true
tags: ${{ env.REGISTRY }}/${{ env.REPO_LOWER }}-reverse-proxy:latest,${{ env.REGISTRY }}/${{ env.REPO_LOWER }}-reverse-proxy:${{ github.ref_name }}
+
+ - name: Build and push InstallCli image
+ uses: docker/build-push-action@v5
+ with:
+ context: .
+ file: src/Utilities/AliasVault.InstallCli/Dockerfile
+ push: true
+ tags: ${{ env.REGISTRY }}/${{ env.REPO_LOWER }}-installcli:latest,${{ env.REGISTRY }}/${{ env.REPO_LOWER }}-installcli:${{ github.ref_name }}
diff --git a/common.sh b/common.sh
index 303ef5aa0..abe36b831 100644
--- a/common.sh
+++ b/common.sh
@@ -122,13 +122,13 @@ generate_admin_password() {
PASSWORD=$(openssl rand -base64 12)
# Use pre-built image from GitHub Container Registry
- if ! docker pull ghcr.io/lanedirt/aliasvault-initcli:latest > /dev/null 2>&1; then
+ if ! docker pull ghcr.io/lanedirt/aliasvault-installcli:latest > /dev/null 2>&1; then
printf "${YELLOW}> Pre-built image not found, building locally...${NC}"
if [ "$VERBOSE" = true ]; then
- docker build -t initcli -f src/Utilities/AliasVault.InstallCli/Dockerfile .
+ docker build -t installcli -f src/Utilities/AliasVault.InstallCli/Dockerfile .
else
(
- docker build -t initcli -f src/Utilities/AliasVault.InstallCli/Dockerfile . > install_build_output.log 2>&1 &
+ docker build -t installcli -f src/Utilities/AliasVault.InstallCli/Dockerfile . > install_build_output.log 2>&1 &
BUILD_PID=$!
while kill -0 $BUILD_PID 2>/dev/null; do
printf "."
@@ -143,9 +143,9 @@ generate_admin_password() {
fi
)
fi
- HASH=$(docker run --rm initcli "$PASSWORD")
+ HASH=$(docker run --rm installcli "$PASSWORD")
else
- HASH=$(docker run --rm ghcr.io/lanedirt/aliasvault-initcli:latest "$PASSWORD")
+ HASH=$(docker run --rm ghcr.io/lanedirt/aliasvault-installcli:latest "$PASSWORD")
fi
# Update env vars
diff --git a/docs/install/1-manually-setup-docker.md b/docs/install/1-manually-setup-docker.md
index 4c7d11051..c2015fd28 100644
--- a/docs/install/1-manually-setup-docker.md
+++ b/docs/install/1-manually-setup-docker.md
@@ -52,12 +52,12 @@ This README provides step-by-step instructions for manually setting up AliasVaul
Build the Docker image for password hashing:
```
- docker build -t initcli -f src/Utilities/InitializationCLI/Dockerfile .
+ docker build -t installcli -f src/Utilities/AliasVault.InstallCli/Dockerfile .
```
Generate the password hash:
```
- docker run --rm initcli "<your_prefered_admin_password_here>"
+ docker run --rm installcli "<your_prefered_admin_password_here>"
```
Add the password hash and generation timestamp to the .env file: