Compare commits
6 Commits
main
...
b4b620b74e
Author | SHA1 | Date | |
---|---|---|---|
b4b620b74e | |||
26fa8c6856 | |||
4ff699dd97 | |||
46513a3146 | |||
ebbeeebc38 | |||
d3f1a4e15f |
@@ -8,36 +8,11 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: git.hofer.link/philipp/ci-images:rust-latest
|
container: docker:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
# Install Docker for Debian
|
|
||||||
- name: Install Docker
|
|
||||||
run: |
|
|
||||||
if ! command -v docker &> /dev/null; then
|
|
||||||
echo "Installing Docker for Debian..."
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release
|
|
||||||
|
|
||||||
# Add Docker's official GPG key
|
|
||||||
install -m 0755 -d /etc/apt/keyrings
|
|
||||||
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
|
||||||
chmod a+r /etc/apt/keyrings/docker.gpg
|
|
||||||
|
|
||||||
# Add the repository to sources list
|
|
||||||
echo \
|
|
||||||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
|
|
||||||
$(lsb_release -cs) stable" | \
|
|
||||||
tee /etc/apt/sources.list.d/docker.list > /dev/null
|
|
||||||
|
|
||||||
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
|
||||||
|
@@ -5,8 +5,8 @@
|
|||||||
# 2. Tag the image: `docker tag <id> git.hofer.link/philipp/ci-images:rust-latest`
|
# 2. Tag the image: `docker tag <id> git.hofer.link/philipp/ci-images:rust-latest`
|
||||||
# 3. Push the image: `docker push git.hofer.link/philipp/ci-images:rust-latest`
|
# 3. Push the image: `docker push git.hofer.link/philipp/ci-images:rust-latest`
|
||||||
|
|
||||||
|
FROM rust:1.87
|
||||||
|
|
||||||
FROM rust:1.88
|
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y sqlite3
|
RUN apt-get update && apt-get install -y sqlite3
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user