git.limbosolutions.com/kb/gitea/act:latest
All checks were successful
/ build-docker-image (push) Successful in 9s
All checks were successful
/ build-docker-image (push) Successful in 9s
This commit is contained in:
31
.gitea/workflows/act-network-stack-deploy.yml
Normal file
31
.gitea/workflows/act-network-stack-deploy.yml
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
schedule:
|
||||||
|
- cron: '@weekly' # once per week
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-docker-image:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Log in to git.limbosolutions.com docker registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: git.limbosolutions.com
|
||||||
|
username: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }}
|
||||||
|
password: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Build and push Docker Image
|
||||||
|
id: push
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: ${{gitea.workspace}}/acts/network-stack
|
||||||
|
file: ${{gitea.workspace}}/acts/network-stack/Dockerfile
|
||||||
|
push: true
|
||||||
|
tags: git.limbosolutions.com/kb/gitea/act:latest-network-stack
|
||||||
@@ -25,7 +25,7 @@ jobs:
|
|||||||
id: push
|
id: push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: ${{gitea.workspace}}/runners/act-runner-network-stack
|
context: ${{gitea.workspace}}/act-runners/network-stack
|
||||||
file: ${{gitea.workspace}}/runners/act-runner-network-stack/Dockerfile
|
file: ${{gitea.workspace}}/act-runners/network-stack/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: git.limbosolutions.com/kb/gitea/act_runner:0.2.13-network-stack
|
tags: git.limbosolutions.com/kb/gitea/act_runner:0.2.13-network-stack
|
||||||
37
acts/network-stack/Dockerfile
Normal file
37
acts/network-stack/Dockerfile
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
|
||||||
|
FROM catthehacker/ubuntu:act-latest
|
||||||
|
|
||||||
|
RUN echo "build started.." && \
|
||||||
|
apt-get update && \
|
||||||
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||||
|
openssh-client \
|
||||||
|
curl \
|
||||||
|
ansible \
|
||||||
|
nodejs \
|
||||||
|
rclone \
|
||||||
|
rsync \
|
||||||
|
gettext-base \ # provides envsubst
|
||||||
|
bash \
|
||||||
|
tar \
|
||||||
|
jq && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Install kubectl (latest stable)
|
||||||
|
RUN curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl" && \
|
||||||
|
chmod +x ./kubectl && \
|
||||||
|
mv ./kubectl /usr/local/bin/kubectl
|
||||||
|
|
||||||
|
# Install Helm pinned version
|
||||||
|
RUN curl -fsSL https://get.helm.sh/helm-v3.14.4-linux-amd64.tar.gz -o helm.tar.gz && \
|
||||||
|
tar -zxvf helm.tar.gz && \
|
||||||
|
mv linux-amd64/helm /usr/local/bin/helm && \
|
||||||
|
rm -rf linux-amd64 helm.tar.gz
|
||||||
|
|
||||||
|
# Install Helm latest release dynamically
|
||||||
|
RUN HELM_VERSION=$(curl -s https://api.github.com/repos/helm/helm/releases/latest | jq -r .tag_name) && \
|
||||||
|
curl -fsSL https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz -o helm.tar.gz && \
|
||||||
|
tar -zxvf helm.tar.gz && \
|
||||||
|
mv linux-amd64/helm /usr/local/bin/helm && \
|
||||||
|
rm -rf linux-amd64 helm.tar.gz
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user