Skip to content

Bump actions/checkout from 3 to 4 #29

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #29

Workflow file for this run

name: ci
on:
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: "Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)"
required: false
default: false
pull_request:
push:
branches:
- main
tags:
- '**'
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
build:
#runs-on: [self-hosted, lab, he, simple]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU for Docker Buildkit
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver-opts: |
env.BUILDKIT_STEP_LOG_MAX_SIZE=-1
env.BUILDKIT_STEP_LOG_MAX_SPEED=-1
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Install due with our template
run: |
sudo apt-get install -y wget git rsync jq curl
git clone https://github.com/CumulusNetworks/DUE.git
cd DUE
git checkout v4.0.1
sed -i -e 's/^install:.*/install:/' Makefile
make install
cd ..
sudo cp -r honie /usr/share/due/templates/
- name: Uninstall podman (conflict with due)
run: |
sudo apt-get remove -y podman | true
- name: Create due builder docker image
run: |
due --create --name honie-build --prompt HONIE --tag latest --use-template honie --from debian:11
- name: Push due docker image
run: |
docker tag due-honie-build:latest ghcr.io/githedgehog/due-honie-build:latest
docker push ghcr.io/githedgehog/due-honie-build:latest
- name: Setup tmate session for debug
if: ${{ failure() && github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
uses: mxschmitt/action-tmate@v3
timeout-minutes: 30
with:
limit-access-to-actor: true