diff --git a/.github/workflows/main-workflow.yml b/.github/workflows/main-workflow.yml new file mode 100644 index 0000000..c3bef41 --- /dev/null +++ b/.github/workflows/main-workflow.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index 6b4b734..e1a1cc4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # base -FROM ubuntu:22.04 +FROM ubuntu:24.04 # Update Package RUN apt-get update diff --git a/README.md b/README.md index f97564d..ea296fd 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # Ubuntu 22.04 Gitea Runner Worker -## Version 1.0.1 \ No newline at end of file +## Version 1.2.0 \ No newline at end of file