This commit is contained in:
@@ -10,13 +10,15 @@ jobs:
|
|||||||
runs-on: ["buildkit"] # must match runner labels
|
runs-on: ["buildkit"] # must match runner labels
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Checkout repository (requires Node)
|
# Install basic dependencies for Node.js
|
||||||
- name: Install Node.js
|
- name: Install Node.js dependencies
|
||||||
run: |
|
run: |
|
||||||
# Debian/Ubuntu based image
|
apt-get update
|
||||||
|
apt-get install -y curl gnupg ca-certificates
|
||||||
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
|
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
|
||||||
apt-get install -y nodejs
|
apt-get install -y nodejs
|
||||||
|
|
||||||
|
# Checkout the repository
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -29,7 +31,7 @@ jobs:
|
|||||||
| tar -xz -C /usr/local/bin --strip-components=1 bin/buildctl
|
| tar -xz -C /usr/local/bin --strip-components=1 bin/buildctl
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Build and push image using remote BuildKit
|
# Build and push Dockerfile using remote BuildKit
|
||||||
- name: Build and Push Dockerfile
|
- name: Build and Push Dockerfile
|
||||||
run: |
|
run: |
|
||||||
buildctl \
|
buildctl \
|
||||||
|
|||||||
Reference in New Issue
Block a user