From e65f4c5a4f90f37e698bd2fee2ddd7755d897bdd Mon Sep 17 00:00:00 2001 From: a1ef Date: Wed, 13 Nov 2024 18:59:04 +0300 Subject: [PATCH] Init commit --- .github/workflows/build.yaml | 21 +++++++++++++++++++++ Dockerfile | 4 ++++ 2 files changed, 25 insertions(+) create mode 100644 .github/workflows/build.yaml create mode 100644 Dockerfile diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..69f68c1 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,21 @@ +name: Docker Image CI for ArgoCD Helm plugin container + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build and push the image + run : | + docker login --username a1ef --password ${{ secrets.GITHUB_TOKEN }} ghcr.io + docker build --tag ghcr.io/a1ef/argocd-helm-plugin-setup . + docker push ghcr.io/a1ef/argocd-helm-plugin-setup diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..70f5ab4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM busybox +RUN wget https://get.helm.sh/helm-v3.10.3-linux-amd64.tar.gz -O- | tar xz && rm linux-amd64/[LR]* && mv linux-amd64 /tools +RUN wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 -O /tools/jq && chmod +x /tools/jq +RUN wget https://github.com/mikefarah/yq/releases/download/v4.30.6/yq_linux_amd64 -O /tools/yq && chmod +x /tools/yq