From feaa7363636d43c671de6e98d1ff5e0166254f68 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Mon, 7 Dec 2020 13:14:42 +0100 Subject: [PATCH] Replace Travis CI with GitHub Actions --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ .travis.yml | 24 ------------------------ README.adoc | 6 +++--- 3 files changed, 27 insertions(+), 27 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..b2a5650 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI +on: + - push + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Install qemu-utils + run: | + sudo apt-get update + sudo apt-get install qemu-utils + + - uses: actions/checkout@v2 + + - name: Build image + run: | + sudo ./alpine-make-vm-image \ + --image-format qcow2 \ + --image-size 2G \ + --repositories-file example/repositories \ + --packages "$(cat example/packages)" \ + --script-chroot \ + alpine-virthardened-$(date +%Y-%m-%d).qcow2 -- ./example/configure.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a822d2d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -dist: bionic -sudo: required -language: minimal -addons: - apt: - packages: - - qemu-utils -script: - - sudo ./alpine-make-vm-image - --image-format qcow2 - --image-size 2G - --repositories-file example/repositories - --packages "$(cat example/packages)" - --script-chroot - alpine-virthardened-$(date +%Y-%m-%d).qcow2 -- ./example/configure.sh -#deploy: -# provider: releases -# api_key: -# secure: -# file: "*.qcow2" -# file_glob: true -# skip_cleanup: true -# on: -# tags: true diff --git a/README.adoc b/README.adoc index 1aaf49c..c418aaa 100644 --- a/README.adoc +++ b/README.adoc @@ -5,11 +5,11 @@ :version: 0.6.0 ifdef::env-github[] -image:https://travis-ci.org/{gh-name}.svg?branch=master["Build Status", link="https://travis-ci.org/{gh-name}"] +image:https://github.com/{gh-name}/workflows/CI/badge.svg["Build Status", link="https://github.com/{gh-name}/actions"] endif::env-github[] This project provides a script for making customized https://alpinelinux.org/[Alpine Linux] disk images for virtual machines. -It’s quite simple (300 LoC of shell), fast (~22 seconds on Travis CI, without Travis VM initialization) and requires minimum dependencies (QEMU and filesystem tools). +It’s quite simple (300 LoC of shell), fast (~32 seconds on GitHub Actions) and requires minimum dependencies (QEMU and filesystem tools). TIP: Don’t need VM, just want to chroot into Alpine Linux (e.g. on CI)? Try https://github.com/alpinelinux/alpine-chroot-install[alpine-chroot-install]! @@ -26,7 +26,7 @@ TIP: Don’t need VM, just want to chroot into Alpine Linux (e.g. on CI)? == Usage Read documentation in link:{script-name}[{script-name}]. -See link:.travis.yml[.travis.yml] for Travis example. +See link:.github/workflows/ci.yml[] for GitHub Actions example. You can copy link:{script-name}[{script-name}] into your repository or download it on demand, e.g.: