mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-opentofu-private.git
synced 2025-10-27 07:43:07 +00:00
Compare commits
6 Commits
461c145e39
...
8d7636a925
| Author | SHA1 | Date | |
|---|---|---|---|
| 8d7636a925 | |||
| 49c5457547 | |||
| 9b00c6d3f4 | |||
| 7c1d265e75 | |||
| b6c3b5e80f | |||
| 1f41c3dd53 |
@ -65,7 +65,8 @@ jobs:
|
||||
|
||||
- name: Install dante-server
|
||||
run: |
|
||||
apt-get install -y dante-server openssl libssl1.1
|
||||
apt-get install -y dante-server openssl
|
||||
#libssl1.1
|
||||
|
||||
|
||||
- name: Configure dante-server
|
||||
@ -92,6 +93,7 @@ jobs:
|
||||
- name: vaultwarden urls as secrets
|
||||
run: |
|
||||
echo "config"
|
||||
echo "$VAULTWARDEN_LINK"
|
||||
bw config server $VAULTWARDEN_LINK
|
||||
echo "login"
|
||||
bw login --apikey
|
||||
@ -99,6 +101,7 @@ jobs:
|
||||
BW_SESSION=$(bw unlock "$BW_PASSWORD" --raw)
|
||||
echo "$BW_SESSION"
|
||||
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"
|
||||
|
||||
- name: Start cloudflared Access TCP -> SOCKS5 (background)
|
||||
@ -165,7 +168,7 @@ jobs:
|
||||
elif [ "$type" == "note" ]; then
|
||||
echo "note get"
|
||||
bw get item "$name" --session "$BW_SESSION" | jq -r '.notes' > "$output"
|
||||
cat $output
|
||||
#cat $output
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
@ -1,23 +1,31 @@
|
||||
FROM ghcr.io/opentofu/opentofu:1.9-minimal AS tofu
|
||||
|
||||
FROM ubuntu:24.04
|
||||
|
||||
|
||||
# Copy the tofu binary
|
||||
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 \
|
||||
git \
|
||||
curl \
|
||||
nodejs \
|
||||
npm \
|
||||
git \
|
||||
unzip \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
jq \
|
||||
gnupg \
|
||||
ca-certificates \
|
||||
&& 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 \
|
||||
&& unzip /tmp/bw.zip -d /usr/local/bin \
|
||||
&& chmod +x /usr/local/bin/bw \
|
||||
&& rm /tmp/bw.zip
|
||||
# Instalar Node.js 18 via NodeSource
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
|
||||
apt-get install -y nodejs
|
||||
|
||||
# Verificar versões (opcional para debug)
|
||||
RUN node -v && npm -v
|
||||
|
||||
|
||||
|
||||
|
||||
RUN npm install -g @bitwarden/cli
|
||||
|
||||
WORKDIR /workspace
|
||||
Reference in New Issue
Block a user