mirror of
https://github.com/aleleba/ubuntu-22.04-gitea-runner-worker.git
synced 2026-04-19 07:17:00 -06:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
a70cd9eb54
|
|||
|
2ec58a5f12
|
34
.github/workflows/main-workflow.yml
vendored
Normal file
34
.github/workflows/main-workflow.yml
vendored
Normal 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/p-lao/ubuntu-node-apps:latest
|
||||
@@ -1,5 +1,5 @@
|
||||
# base
|
||||
FROM ubuntu:22.04
|
||||
FROM ubuntu:24.04
|
||||
|
||||
# Update Package
|
||||
RUN apt-get update
|
||||
@@ -51,6 +51,10 @@ RUN sudo apt-get install -y 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/
|
||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user