init commit

This commit is contained in:
Drake Marino 2024-12-08 20:20:36 -06:00
parent 2bc4e89aa1
commit 7ef51cbcff
2 changed files with 34 additions and 0 deletions

View File

@ -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

4
Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM ubuntu:24.04
RUN apt update && apt upgrade -y
RUN apt install git nodejs npm --no-install-recommends -y