This commit is contained in:
@ -8,11 +8,26 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: docker:latest
|
container: git.hofer.link/philipp/ci-images:rust-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
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
|
# Determine which image to build
|
||||||
- name: Set image details
|
- name: Set image details
|
||||||
id: image_details
|
id: image_details
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
FROM rust:1.87
|
FROM rust:1.87
|
||||||
|
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y sqlite3
|
RUN apt-get update && apt-get install -y sqlite3
|
||||||
|
|
||||||
# nodejs
|
# nodejs
|
||||||
|
Reference in New Issue
Block a user