Skip to content

Instantly share code, notes, and snippets.

@fabidick22
Created October 31, 2023 04:58
Show Gist options
  • Save fabidick22/73610c7f84cad6abc5b28787895e5be3 to your computer and use it in GitHub Desktop.
Save fabidick22/73610c7f84cad6abc5b28787895e5be3 to your computer and use it in GitHub Desktop.
name: SOCI
on: [push]
env:
NERDCTL_VERSION: "1.6.2"
SOCI_VERSION: "0.4.0"
jobs:
build-push:
name: Build and push image
runs-on: ubuntu-latest
steps:
- name: Set up nerdctl
run: |
wget https://github.com/containerd/nerdctl/releases/download/v$NERDCTL_VERSION/nerdctl-full-$NERDCTL_VERSION-linux-amd64.tar.gz
sudo tar Cxzvvf /usr/local nerdctl-full-$NERDCTL_VERSION-linux-amd64.tar.gz
sudo systemctl enable --now buildkit
- name: Set up SOCI
run: |
wget https://github.com/awslabs/soci-snapshotter/releases/download/v$SOCI_VERSION/soci-snapshotter-$SOCI_VERSION-linux-amd64.tar.gz
sudo tar -C /usr/local/bin -xvf soci-snapshotter-$SOCI_VERSION-linux-amd64.tar.gz soci soci-snapshotter-grpc
- name: Test commands
run: |
sudo nerdctl version
soci --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment