From 7ef51cbcff58a58d4c76b3027a81d6d0f0fe48f4 Mon Sep 17 00:00:00 2001 From: drake Date: Sun, 8 Dec 2024 20:20:36 -0600 Subject: [PATCH] init commit --- .gitea/workflows/publish.yaml | 30 ++++++++++++++++++++++++++++++ Dockerfile | 4 ++++ 2 files changed, 34 insertions(+) create mode 100644 .gitea/workflows/publish.yaml create mode 100644 Dockerfile diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml new file mode 100644 index 0000000..7201647 --- /dev/null +++ b/.gitea/workflows/publish.yaml @@ -0,0 +1,30 @@ +name: Publish + +on: + push: + branches: + - main + +jobs: + build_and_publish_docker_image: + runs-on: ubuntu-latest + + steps: + - name: Check out repository code + uses: actions/checkout@v4 + + - name: Install Docker + run: curl -fsSL https://get.docker.com | sh + + - name: Login to Docker Registry + uses: docker/login-action@v3 + with: + registry: git.marinodev.com + username: ${{ vars.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and Push Docker Image + uses: docker/build-push-action@v6 + with: + push: true + tags: git.marinodev.com/marinodev/rust_gitea_ci:latest diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a188fd4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM ubuntu:24.04 + +RUN apt update && apt upgrade -y +RUN apt install git nodejs npm --no-install-recommends -y