12 Commits

Author SHA1 Message Date
8a5c2ce64c Merge pull request 'Update documentation/Dockerfile' (#292) from fenix-admin into dev
Reviewed-on: fenix-gitea-admin/iac-opentofu-private#292
2025-10-12 10:52:33 +00:00
8d7636a925 Update documentation/Dockerfile 2025-10-12 10:51:57 +00:00
453ff5202e Merge pull request '[deploy-opentofu]' (#291) from fenix-admin into dev
Reviewed-on: fenix-gitea-admin/iac-opentofu-private#291
2025-10-12 09:38:23 +00:00
49c5457547 [deploy-opentofu]
[deploy-opentofu]
2025-10-12 09:37:42 +00:00
d24306ce8c Merge pull request '[deploy-opentofu]' (#290) from fenix-admin into dev
Reviewed-on: fenix-gitea-admin/iac-opentofu-private#290
2025-10-12 09:13:12 +00:00
9b00c6d3f4 [deploy-opentofu]
[deploy-opentofu]
2025-10-12 09:12:36 +00:00
b2533ac7cb Merge pull request '[deploy-opentofu]' (#289) from fenix-admin into dev
Reviewed-on: fenix-gitea-admin/iac-opentofu-private#289
2025-10-12 09:08:43 +00:00
7c1d265e75 [deploy-opentofu]
[deploy-opentofu]
2025-10-12 09:08:10 +00:00
00239da11c Merge pull request '[deploy-opentofu]' (#288) from fenix-admin into dev
Reviewed-on: fenix-gitea-admin/iac-opentofu-private#288
2025-10-12 09:04:09 +00:00
b6c3b5e80f [deploy-opentofu]
[deploy-opentofu]
2025-10-12 09:03:21 +00:00
9911825872 Merge pull request '[deploy-opentofu]' (#287) from fenix-admin into dev
Reviewed-on: fenix-gitea-admin/iac-opentofu-private#287
2025-10-12 09:00:39 +00:00
1f41c3dd53 [deploy-opentofu]
[deploy-opentofu]
2025-10-12 08:59:28 +00:00
2 changed files with 23 additions and 12 deletions

View File

@ -65,7 +65,8 @@ jobs:
- name: Install dante-server - name: Install dante-server
run: | run: |
apt-get install -y dante-server openssl libssl1.1 apt-get install -y dante-server openssl
#libssl1.1
- name: Configure dante-server - name: Configure dante-server
@ -92,6 +93,7 @@ jobs:
- name: vaultwarden urls as secrets - name: vaultwarden urls as secrets
run: | run: |
echo "config" echo "config"
echo "$VAULTWARDEN_LINK"
bw config server $VAULTWARDEN_LINK bw config server $VAULTWARDEN_LINK
echo "login" echo "login"
bw login --apikey bw login --apikey
@ -99,6 +101,7 @@ jobs:
BW_SESSION=$(bw unlock "$BW_PASSWORD" --raw) BW_SESSION=$(bw unlock "$BW_PASSWORD" --raw)
echo "$BW_SESSION" echo "$BW_SESSION"
echo "getting item" echo "getting item"
bw get item "iac.proxmox.ssh.link" --session "$BW_SESSION"
bw get item "iac.proxmox.ssh.link" --session "$BW_SESSION" | jq -r '.notes' > "proxmox-ssh-link.txt" bw get item "iac.proxmox.ssh.link" --session "$BW_SESSION" | jq -r '.notes' > "proxmox-ssh-link.txt"
- name: Start cloudflared Access TCP -> SOCKS5 (background) - name: Start cloudflared Access TCP -> SOCKS5 (background)
@ -165,7 +168,7 @@ jobs:
elif [ "$type" == "note" ]; then elif [ "$type" == "note" ]; then
echo "note get" echo "note get"
bw get item "$name" --session "$BW_SESSION" | jq -r '.notes' > "$output" bw get item "$name" --session "$BW_SESSION" | jq -r '.notes' > "$output"
cat $output #cat $output
fi fi
done done

View File

@ -5,19 +5,27 @@ FROM ubuntu:24.04
# Copy the tofu binary # Copy the tofu binary
COPY --from=tofu /usr/local/bin/tofu /usr/local/bin/tofu COPY --from=tofu /usr/local/bin/tofu /usr/local/bin/tofu
# Install dependencies
# Atualizar pacotes e instalar dependências básicas
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
git \
curl \ curl \
nodejs \ git \
npm \
unzip \ unzip \
jq \
gnupg \
ca-certificates \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN curl -L -o /tmp/bw.zip https://github.com/bitwarden/cli/releases/download/v1.22.1/bw-linux-1.22.1.zip \ # Instalar Node.js 18 via NodeSource
&& unzip /tmp/bw.zip -d /usr/local/bin \ RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
&& chmod +x /usr/local/bin/bw \ apt-get install -y nodejs
&& rm /tmp/bw.zip
# Verificar versões (opcional para debug)
RUN node -v && npm -v
RUN npm install -g @bitwarden/cli
WORKDIR /workspace WORKDIR /workspace