Skip to content

Commit

Permalink
Add CI for alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
AlistairB committed Jan 12, 2022
1 parent 02d4fbb commit 46170bb
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/alpine.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Validate Alpine

on:
pull_request:
branches:
- master
paths:
- '**/alpine*/Dockerfile'
- '.github/workflows/alpine.yml'

jobs:
build-smoke-test:
timeout-minutes: 30
runs-on: ubuntu-latest
name: ${{ matrix.ghc }}-alpine${{ matrix.os_version }}
strategy:
fail-fast: false
matrix:
ghc: ['9.0.2', '9.2.1']
os_version: ['3.14', '3.15']
include:
- ghc: '9.0.2'
ghc_minor: '9.0'
- ghc: '9.2.1'
ghc_minor: '9.2'
steps:
- uses: actions/checkout@v2
- name: build + smoke test [${{ matrix.ghc }}]
uses: nick-invision/retry@v2
with:
timeout_minutes: 8
max_attempts: 3
command: |
docker build --pull \
-t haskell:${{ matrix.ghc }}-alpine${{ matrix.os_version }} \
${{ matrix.ghc_minor }}/alpine${{ matrix.os_version }}
- uses: actions/checkout@v2
with:
repository: AlistairB/official-images
ref: haskell-sh
path: official-images
- name: run official-images tests
run: ./official-images/test/run.sh haskell:${{ matrix.ghc }}-alpine${{ matrix.os_version }}

0 comments on commit 46170bb

Please sign in to comment.