Skip to content

turnip-ppa-update

turnip-ppa-update #13

# This is a basic workflow to help you get started with Actions
name: turnip-ppa-update
# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
schedule:
- cron: '30 2 * * *'
# 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"
build-ppa:
# 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@v4
- name: Install podman
run: |
cd "$GITHUB_WORKSPACE"
sudo apt update
sudo apt install -y podman
# Runs a set of commands using the runners shell
- name: Run build script inside podman container for 24.04
env:
EMAIL: ${{ secrets.EMAIL }}
PUBKEY: ${{ secrets.PUBKEY }}
PRIVKEY: ${{ secrets.PRIVKEY }}
run: |
cd "$GITHUB_WORKSPACE"
podman build -f Dockerfile -t turnip-build --build-arg EMAIL="$EMAIL" --build-arg PRIVKEY="$PRIVKEY" --build-arg PUBKEY="$PUBKEY" --build-arg UBUNTU_VERSION="24.04"
podman run --security-opt seccomp=unconfined turnip-build
- name: Run build script inside podman container for 24.10
env:
EMAIL: ${{ secrets.EMAIL }}
PUBKEY: ${{ secrets.PUBKEY }}
PRIVKEY: ${{ secrets.PRIVKEY }}
run: |
cd "$GITHUB_WORKSPACE"
podman build -f Dockerfile -t turnip-build --build-arg EMAIL="$EMAIL" --build-arg PRIVKEY="$PRIVKEY" --build-arg PUBKEY="$PUBKEY" --build-arg UBUNTU_VERSION="24.10"
podman run --security-opt seccomp=unconfined turnip-build