This commit is contained in:
@ -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
|
||||
|
@ -7,7 +7,6 @@
|
||||
|
||||
FROM rust:1.87
|
||||
|
||||
|
||||
RUN apt-get update && apt-get install -y sqlite3
|
||||
|
||||
# nodejs
|
||||
|
Reference in New Issue
Block a user