Merge pull request #1055 from ramonacat/update_20241212041256 #2310
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build all the machines | |
on: | |
pull_request: ~ | |
push: | |
branches: | |
- 'main' | |
jobs: | |
build: | |
runs-on: self-hosted | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Extract branch name | |
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT | |
id: extract_branch | |
- name: Setup ssh credentials | |
run: ./.github/scripts/credentials.sh | |
env: | |
LIX_REPO_TOKEN: "${{ secrets.LIX_REPO_TOKEN }}" | |
- name: put the SSH key in a file | |
run: echo "${{ secrets.SSH_KEY }}" > id_ed25519 | |
- name: build all machines | |
run: ./.github/scripts/build.sh "${{ steps.extract_branch.outputs.branch }}" |