Skip to content

Commit

Permalink
Update install-prometheus-operator.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyev authored Aug 24, 2024
1 parent 2cc7d3e commit 0c9470f
Showing 1 changed file with 25 additions and 26 deletions.
51 changes: 25 additions & 26 deletions .github/workflows/install-prometheus-operator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,32 @@ jobs:
runs-on: self-hosted

steps:
# - name: Checkout repository
# uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v2

# - name: Set up Terraform
# uses: hashicorp/setup-terraform@v1
# with:
# terraform_version: 1.0.0
- name: Set up Terraform
uses: hashicorp/setup-terraform@v1
with:
terraform_version: 1.0.0

- name: Run Helm in Docker
run: |
cat /etc/passwd
# docker run --rm \
# --network host \
# -v ${{ github.workspace }}/monitoring:/workspace \
# -v $HOME/.kube:/root/.kube \
# -v $HOME/.terraform.d:/root/.terraform.d \
# -w /workspace \
# alpine:3.20 \
# sh -c "
# apk add --no-cache curl bash tar gzip;
# curl https://get.helm.sh/helm-v3.8.0-linux-amd64.tar.gz | tar zxvf -;
# mv linux-amd64/helm /usr/local/bin/helm;
# curl -sO https://releases.hashicorp.com/terraform/1.0.0/terraform_1.0.0_linux_amd64.zip;
# unzip terraform_1.0.0_linux_amd64.zip;
# chmod +x terraform;
# cd /workspace;
# ./terraform init;
# ./terraform apply -auto-approve;
# "
#
docker run --rm \
--user $(id -u):$(id -g) \
--network host \
-v ${{ github.workspace }}/monitoring:/workspace \
-v $HOME/.kube:/root/.kube \
-v $HOME/.terraform.d:/root/.terraform.d \
-w /workspace \
alpine:3.20 \
sh -c "
apk add --no-cache curl bash tar gzip;
curl https://get.helm.sh/helm-v3.8.0-linux-amd64.tar.gz | tar zxvf -;
mv linux-amd64/helm /usr/local/bin/helm;
curl -sO https://releases.hashicorp.com/terraform/1.0.0/terraform_1.0.0_linux_amd64.zip;
unzip terraform_1.0.0_linux_amd64.zip;
chmod +x terraform;
cd /workspace;
./terraform init;
./terraform apply -auto-approve;
"

0 comments on commit 0c9470f

Please sign in to comment.