Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
benjick committed Oct 20, 2024
0 parents commit 25e6213
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Docker Publish

on:
workflow_dispatch:
inputs:
tag:
description: "Tag for the Docker image"
required: true
default: "latest"

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Convert repository name to lowercase
run: echo "REPO_LOWERCASE=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV

- name: Build Docker image
run: docker build -t ghcr.io/${{ env.REPO_LOWERCASE }}:${{ github.event.inputs.tag }} .

- name: Push Docker image
run: docker push ghcr.io/${{ env.REPO_LOWERCASE }}:${{ github.event.inputs.tag }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"tabWidth": 2,
"useTabs": false
}
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:20.14-bullseye-slim

RUN apt-get update && apt-get install -y \
ffmpeg \
build-essential \
libvips-dev \
&& rm -rf /var/lib/apt/lists/*

ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN npm install -g pnpm && pnpm add -g turbo@2.0.14
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# baseimage
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "baseimage",
"version": "0.0.1",
"description": "baseimage",
"scripts": {
"build": "docker build -t baseimage ."
},
"keywords": [],
"author": "Max Malm <max@nextgenclassroom.se>",
"license": "MIT"
}

0 comments on commit 25e6213

Please sign in to comment.