ci
Some checks failed
Build and Push Docker Images / build-and-push (push) Failing after 53s

This commit is contained in:
2025-05-19 18:03:09 +02:00
parent b4b620b74e
commit d6e4ece79b
2 changed files with 16 additions and 2 deletions

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