Skip to content

Better CI pattern #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions .github/workflows/ci.yml → .github/workflows/debian.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Validate Docker
name: Validate Debian

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

jobs:
build-smoke-test:
Expand Down Expand Up @@ -38,19 +38,12 @@ jobs:
${{ matrix.ghc_minor }}/${{ matrix.deb }}
- uses: actions/checkout@v2
with:
repository: docker-library/official-images
repository: AlistairB/official-images
ref: haskell-sh
path: official-images
- name: run official-images tests
run: ./official-images/test/run.sh haskell:${{ matrix.ghc }}-${{ matrix.deb }}

hadolint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: hadolint/[email protected]
with:
recursive: true

emulated-architecture-tests:
timeout-minutes: 60
runs-on: ubuntu-latest
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Hadolint

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

jobs:
hadolint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: hadolint/[email protected]
with:
recursive: true
1 change: 1 addition & 0 deletions .hadolint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ ignored:
# https://github.com/hadolint/hadolint/wiki/DL3008
# Don't want to micro manage the dependency versions.
- DL3008
- DL3018
# https://github.com/hadolint/hadolint/wiki/DL3003
# Using cd /tmp is a very convenient way to clean up after a step.
- DL3003
Expand Down