Skip to content

✨ Update blob cacher (#342) #1147

✨ Update blob cacher (#342)

✨ Update blob cacher (#342) #1147

Workflow file for this run

name: E2E CI
on:
push:
branches:
- main
- gh-readonly-queue/main/*
pull_request:
branches:
- main
jobs:
e2e-test:
name: e2e-test
runs-on: ubuntu-22.04
steps:
- name: Checkout branch
uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- name: Install latest Skopeo # GitHub's ubuntu 22 uses Skopeo 1.4 but we need 1.14
run: |
echo 'deb http://download.opensuse.org/repositories/home:/alvistack/xUbuntu_22.04/ /' | sudo tee /etc/apt/sources.list.d/home:alvistack.list
curl -fsSL https://download.opensuse.org/repositories/home:alvistack/xUbuntu_22.04/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_alvistack.gpg > /dev/null
sudo apt update
sudo apt -o Dpkg::Options::="--force-overwrite" install skopeo
- name: Build
run: |
IP=`hostname -I | awk '{print $1}'`
echo '{"insecure-registries" : ["'$IP':3000"]}' | sudo tee /etc/docker/daemon.json
sudo service docker restart
echo $DOCKER_HOST
docker buildx create --use
make docker-build-builder-local dockerfile-local
docker buildx build -f build/Dockerfile --build-arg WITH_TRIVY_DB=true --platform linux/amd64 --progress plain --output type=docker,dest=- -t sigma:latest . | docker load
- name: Run sigma
run: |
docker run --name sigma -v /var/run/docker.sock:/var/run/docker.sock -d -p 3000:3000 sigma:latest
sleep 5
docker logs sigma
- name: Test push and e2e with k6
run: |
./e2e/push.sh
curl https://github.com/grafana/k6/releases/download/v0.46.0/k6-v0.46.0-linux-amd64.tar.gz -L | tar xvz --strip-components 1
./k6 run e2e/sc.js