initial commit
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
name: Build and Push Custom Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
paths:
|
||||
- "Dockerfile"
|
||||
- ".gitea/workflows/build.yml"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://git.karter.dev/actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: https://git.karter.dev/docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Gitea Registry
|
||||
uses: https://git.karter.dev/docker/login-action@v3
|
||||
with:
|
||||
registry: https://git.karter.dev
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.PAT }}
|
||||
|
||||
- name: Build and push
|
||||
uses: https://git.karter.dev/docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: |
|
||||
git.karter.dev/${{ github.repository }}:latest
|
||||
git.karter.dev/${{ github.repository }}:${{ github.sha }}
|
||||
@@ -0,0 +1 @@
|
||||
.DS_Store
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
FROM danger89/cmake:latest
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN apt-get update && apt-get install -y curl gnupg jq git \
|
||||
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
||||
&& apt-get install -y nodejs \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN node -v && npm -v && cppcheck --version && clang-format --version
|
||||
Reference in New Issue
Block a user