From 052edfdc6af600499b043c231b6fadcc76ca9f39 Mon Sep 17 00:00:00 2001 From: Matthew McKinnon Date: Sat, 9 Nov 2024 11:56:17 +1000 Subject: [PATCH] Initial Commit --- .gitea/workflows/build.yml | 24 ++++++++++++++++++++++++ Dockerfile | 7 +++++++ README.md | 3 +++ renovate.json | 25 +++++++++++++++++++++++++ 4 files changed, 59 insertions(+) create mode 100644 .gitea/workflows/build.yml create mode 100644 Dockerfile create mode 100644 README.md create mode 100644 renovate.json diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..97d03f3 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,24 @@ +on: push +jobs: + build-docker: + runs-on: ubuntu-latest + container: + image: catthehacker/ubuntu:act-latest + steps: + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to DockerHub + uses: docker/login-action@v3 + with: + registry: git.comprofix.com + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: ./ + file: ./Dockerfile + push: true + tags: git.comprofix.com/mmckinnon/alpine-runner:latest \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..83a8ddd --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM alpine:latest@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d +RUN apk update +RUN apk add --no-cache openssh nodejs npm git bash openssh python3 py3-pip py3-passlib +RUN python3 -m pip install --user ansible --break-system-packages +ENV PATH="/root/.local/bin:$PATH" + + diff --git a/README.md b/README.md new file mode 100644 index 0000000..d52dade --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +This is a Dockerfile is used to build a custom alpine image that is use in my homelab CI/CD Pipelines. + + diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..4acc8df --- /dev/null +++ b/renovate.json @@ -0,0 +1,25 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended", + "renovatebot/renovate-config", + ":semanticCommitTypeAll(chore)" + ], + "ignoreDeps": [ + "postgres" + ], + "automerge": true, + "automergeType": "branch", + "automergeStrategy": "rebase", + "commitBodyTable": true, + "ignoreTests": true, + "major": { + "automerge": false, + "dependencyDashboardApproval": true, + "commitMessagePrefix": "chore(deps-major): ", + "labels": [ + "dependencies", + "breaking" + ] + } +}