Skip to content

CI

CI #806

name: CI
on:
push:
branches:
- master
schedule:
- cron: '0 3 * * *' # every day at 3 am
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: ${{ matrix.tag }}
strategy:
fail-fast: false
matrix:
tag: ["6.1.12","6.2.11","7.0.10","7.1.8","7.2.6","7.3.4","7.4.1"]
steps:
- uses: actions/checkout@v3
- name: Docker login
run: |
echo "$DOCKER_PASSWORD" | docker login -u vdesabou --password-stdin
env:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
- name: "Free up disk space"
run: |
df -h
sudo apt-get -qq purge build-essential ghc*
sudo apt-get clean
docker system prune -af
rm -rf /usr/share/dotnet
rm -rf /opt/ghc
rm -rf "/usr/local/share/boost"
rm -rf "$AGENT_TOOLSDIRECTORY"
df -h
- name: Create images
run: bash scripts/create-image.sh "${{ matrix.tag }}"