Add CI to auto-build images on changes; Fixes #1 #2

Merged
philipp merged 11 commits from auto into main 2025-05-19 18:30:53 +02:00
2 changed files with 64 additions and 1 deletions
Showing only changes of commit d6e4ece79b - Show all commits

View File

@ -8,11 +8,26 @@ on:
jobs:
build-and-push:
runs-on: ubuntu-latest
container: docker:latest
container: git.hofer.link/philipp/ci-images:rust-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
# Install Docker if not available
- name: Install Docker
run: |
if ! command -v docker &> /dev/null; then
echo "Installing Docker..."
apt-get update
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update
apt-get install -y docker-ce docker-ce-cli containerd.io
else
echo "Docker is already installed"
fi
# Determine which image to build
- name: Set image details
id: image_details

View File

@ -7,7 +7,6 @@
FROM rust:1.87
RUN apt-get update && apt-get install -y sqlite3
# nodejs