Skip to content

preview: build installable image enable preview feature #33

preview: build installable image enable preview feature

preview: build installable image enable preview feature #33

name: release-demo-images
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'info'
push:
branches:
- "preview"
paths:
- "demo/**"
- ".github/workflows/build-demo-img.yml"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Set up Docker
uses: crazy-max/ghaction-setup-docker@v2
with:
daemon-config: |
{
"debug": true,
"features": {
"containerd-snapshotter": true
}
}
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install apt-get packages
run: |
sudo ACCEPT_EULA=Y apt-get update
sudo ACCEPT_EULA=Y apt-get upgrade
sudo apt-get install wget git curl software-properties-common build-essential libdbus-1-dev pkg-config libseccomp-dev
- name: Build all test and demo OCI images
run: |
make load_demo
- name: Login to ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push images to ghcr.io
run: |
./release/utils/push_imgs.sh