6 Commits

Author SHA1 Message Date
684dfb16ca revert changes. 2026-02-27 03:06:41 +00:00
df27a5b559 Fixing npm installing with nvm. 2026-02-27 02:20:28 +00:00
0601bf3664 Arreglando nombre de imagen. 2026-02-26 20:14:30 +00:00
5bceed88c9 Fixing pipeline.
Some checks failed
Main Workflow / build-and-push (push) Failing after 11m58s
2026-02-26 19:55:58 +00:00
a70cd9eb54 Updating version of ubuntu.
Some checks are pending
Main Workflow / build-and-push (push) Has started running
2026-02-26 19:51:33 +00:00
2ec58a5f12 Adding support to iptables legacy. 2025-09-29 03:17:41 +00:00
3 changed files with 42 additions and 4 deletions

34
.github/workflows/main-workflow.yml vendored Normal file
View File

@@ -0,0 +1,34 @@
# This file contains the main workflow for the ubuntu-22.04-gitea-runner-worker project.
name: Main Workflow
on:
push:
branches: [ master ]
env:
REGISTRY: gitea.p-lao.com
jobs:
# This job builds and pushes the Docker image to the Gitea registry.
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Gitea Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: gitea.p-lao.com/aleleba/ubuntu-24.04-gitea-runner-worker:latest

View File

@@ -1,5 +1,5 @@
# base # base
FROM ubuntu:22.04 FROM ubuntu:24.04
# Update Package # Update Package
RUN apt-get update RUN apt-get update
@@ -15,7 +15,7 @@ RUN apt-get -y install vim
# update the base packages and install Xvfb # update the base packages and install Xvfb
RUN apt-get update -y && \ RUN apt-get update -y && \
apt-get upgrade -y && \ apt-get upgrade -y && \
apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2t64 libxtst6 xauth xvfb
# Installing Node.js # Installing Node.js
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \ RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
@@ -36,7 +36,7 @@ RUN curl -sSL https://get.docker.com/ | sh
VOLUME /var/lib/docker VOLUME /var/lib/docker
#Install Docker Compose #Install Docker Compose
RUN sudo curl -L https://github.com/docker/compose/releases/download/v2.23.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose RUN sudo curl -L https://github.com/docker/compose/releases/download/v5.1.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
RUN sudo chmod +x /usr/local/bin/docker-compose RUN sudo chmod +x /usr/local/bin/docker-compose
RUN docker-compose --version RUN docker-compose --version
#Finishing Installing Docker Compose #Finishing Installing Docker Compose
@@ -51,6 +51,10 @@ RUN sudo apt-get install -y kubectl
#Finishing Instaling kubectl #Finishing Instaling kubectl
#Finishing Instaling kubectl #Finishing Instaling kubectl
# Script to make Docker In Docker Available
RUN sudo update-alternatives --set iptables /usr/sbin/iptables-legacy
RUN sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
COPY docker-entrypoint.sh /usr/local/bin/ COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"] ENTRYPOINT ["docker-entrypoint.sh"]

View File

@@ -1,3 +1,3 @@
# Ubuntu 22.04 Gitea Runner Worker # Ubuntu 22.04 Gitea Runner Worker
## Version 1.0.0 ## Version 1.2.4