Update caddy.yml #37
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
# This is a basic workflow to help you get started with Actions | |
name: butane_to_ignition | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the "main" branch | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
ignite: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
- name: Setup Podman | |
run: | | |
sudo apt update | |
sudo apt-get -y install podman | |
- name: Compile to ignition | |
run: | | |
podman run --interactive --rm --security-opt label=disable \ | |
--volume ${PWD}:/pwd --workdir /pwd quay.io/coreos/butane:release \ | |
--pretty --strict oblong.bu > oblong.ign | |
podman run --interactive --rm --security-opt label=disable \ | |
--volume ${PWD}:/pwd --workdir /pwd quay.io/coreos/butane:release \ | |
--pretty --strict remote.bu > remote.ign | |
- name: Setup ignition validate | |
run: | | |
wget -O ignition-validate https://github.com/coreos/ignition/releases/download/v2.18.0/ignition-validate-x86_64-linux | |
chmod +x ignition-validate | |
- name: Validate oblong.ign | |
run: ./ignition-validate oblong.ign | |
- name: Validate remote.ign | |
run: ./ignition-validate remote.ign | |
- name: Commit to git | |
run: | | |
git config --global user.name 'The Oval' | |
git config --global user.email 'team@obl.ong' | |
git add oblong.ign remote.ign | |
git commit -m "CI: compiled ignition" | |
git push | |