mirror of
https://github.com/joomla-docker/docker-joomla.git
synced 2025-01-23 15:18:25 +00:00
Add GitHub CI (#110)
This commit is contained in:
parent
54fc010ec7
commit
cd419721e2
47
.github/workflows/ci.yml
vendored
Normal file
47
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
name: GitHub CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
schedule:
|
||||||
|
- cron: 0 0 * * 0
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: 'bash -Eeuo pipefail -x {0}'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
generate-jobs:
|
||||||
|
name: Generate Jobs
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
strategy: ${{ steps.generate-jobs.outputs.strategy }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- id: generate-jobs
|
||||||
|
name: Generate Jobs
|
||||||
|
run: |
|
||||||
|
git clone --depth 1 https://github.com/docker-library/bashbrew.git -b master ~/bashbrew
|
||||||
|
strategy="$(~/bashbrew/scripts/github-actions/generate.sh)"
|
||||||
|
jq . <<<"$strategy" # sanity check / debugging aid
|
||||||
|
echo "::set-output name=strategy::$strategy"
|
||||||
|
|
||||||
|
test:
|
||||||
|
needs: generate-jobs
|
||||||
|
strategy: ${{ fromJson(needs.generate-jobs.outputs.strategy) }}
|
||||||
|
name: ${{ matrix.name }}
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Prepare Environment
|
||||||
|
run: ${{ matrix.runs.prepare }}
|
||||||
|
- name: Pull Dependencies
|
||||||
|
run: ${{ matrix.runs.pull }}
|
||||||
|
- name: Build ${{ matrix.name }}
|
||||||
|
run: ${{ matrix.runs.build }}
|
||||||
|
- name: History ${{ matrix.name }}
|
||||||
|
run: ${{ matrix.runs.history }}
|
||||||
|
- name: Test ${{ matrix.name }}
|
||||||
|
run: ${{ matrix.runs.test }}
|
||||||
|
- name: '"docker images"'
|
||||||
|
run: ${{ matrix.runs.images }}
|
30
.travis.yml
30
.travis.yml
@ -1,30 +0,0 @@
|
|||||||
language: bash
|
|
||||||
services: docker
|
|
||||||
|
|
||||||
env:
|
|
||||||
- VARIANT=php7.2/apache
|
|
||||||
- VARIANT=php7.2/fpm
|
|
||||||
- VARIANT=php7.2/fpm-alpine
|
|
||||||
- VARIANT=php7.3/apache
|
|
||||||
- VARIANT=php7.3/fpm
|
|
||||||
- VARIANT=php7.3/fpm-alpine
|
|
||||||
- VARIANT=php7.4/apache
|
|
||||||
- VARIANT=php7.4/fpm
|
|
||||||
- VARIANT=php7.4/fpm-alpine
|
|
||||||
|
|
||||||
install:
|
|
||||||
- git clone https://github.com/docker-library/official-images.git ~/official-images
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- env | sort
|
|
||||||
- cd "$VARIANT"
|
|
||||||
- slash='/'; image="joomla:${VARIANT//$slash/-}"
|
|
||||||
|
|
||||||
script:
|
|
||||||
- docker build -t "$image" .
|
|
||||||
- ~/official-images/test/run.sh "$image"
|
|
||||||
|
|
||||||
after_script:
|
|
||||||
- docker images
|
|
||||||
|
|
||||||
# vim:set et ts=2 sw=2:
|
|
13
README.md
13
README.md
@ -8,8 +8,17 @@ See a change merged here that doesn't show up on the Docker Hub yet? Check [the
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
- [Travis CI:
|
[![GitHub CI build status badge](https://github.com/joomla-docker/docker-joomla/workflows/GitHub%20CI/badge.svg)](https://github.com/joomla-docker/docker-joomla/actions?query=workflow%3A%22GitHub+CI%22)
|
||||||
![build status badge](https://img.shields.io/travis/joomla-docker/docker-joomla/master.svg)](https://travis-ci.org/joomla-docker/docker-joomla/branches)
|
[![update.sh build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/update.sh/job/joomla.svg?label=Automated%20update.sh)](https://doi-janky.infosiftr.net/job/update.sh/job/joomla/)
|
||||||
|
[![amd64 build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/amd64/job/joomla.svg?label=amd64)](https://doi-janky.infosiftr.net/job/multiarch/job/amd64/job/joomla)
|
||||||
|
[![arm32v5 build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/arm32v5/job/joomla.svg?label=arm32v5)](https://doi-janky.infosiftr.net/job/multiarch/job/arm32v5/job/joomla)
|
||||||
|
[![arm32v6 build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/arm32v6/job/joomla.svg?label=arm32v6)](https://doi-janky.infosiftr.net/job/multiarch/job/arm32v6/job/joomla)
|
||||||
|
[![arm32v7 build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/arm32v7/job/joomla.svg?label=arm32v7)](https://doi-janky.infosiftr.net/job/multiarch/job/arm32v7/job/joomla)
|
||||||
|
[![arm64v8 build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/arm64v8/job/joomla.svg?label=arm64v8)](https://doi-janky.infosiftr.net/job/multiarch/job/arm64v8/job/joomla)
|
||||||
|
[![i386 build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/i386/job/joomla.svg?label=i386)](https://doi-janky.infosiftr.net/job/multiarch/job/i386/job/joomla)
|
||||||
|
[![mips64le build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/mips64le/job/joomla.svg?label=mips64le)](https://doi-janky.infosiftr.net/job/multiarch/job/mips64le/job/joomla)
|
||||||
|
[![ppc64le build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/ppc64le/job/joomla.svg?label=ppc64le)](https://doi-janky.infosiftr.net/job/multiarch/job/ppc64le/job/joomla)
|
||||||
|
[![s390x build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/s390x/job/joomla.svg?label=s390x)](https://doi-janky.infosiftr.net/job/multiarch/job/s390x/job/joomla)
|
||||||
|
|
||||||
<!-- THIS FILE IS GENERATED BY https://github.com/docker-library/docs/blob/master/generate-repo-stub-readme.sh -->
|
<!-- THIS FILE IS GENERATED BY https://github.com/docker-library/docs/blob/master/generate-repo-stub-readme.sh -->
|
||||||
|
|
||||||
|
@ -35,7 +35,6 @@ declare -A pecl_versions=(
|
|||||||
[php7-mcrypt]='1.0.3'
|
[php7-mcrypt]='1.0.3'
|
||||||
)
|
)
|
||||||
|
|
||||||
travisEnv=
|
|
||||||
for phpVersion in "${phpVersions[@]}"; do
|
for phpVersion in "${phpVersions[@]}"; do
|
||||||
phpVersionDir="$phpVersion"
|
phpVersionDir="$phpVersion"
|
||||||
phpVersion="${phpVersion#php}"
|
phpVersion="${phpVersion#php}"
|
||||||
@ -84,10 +83,5 @@ for phpVersion in "${phpVersions[@]}"; do
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
travisEnv+='\n - VARIANT='"$dir"
|
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
travis="$(awk -v 'RS=\n\n' '$1 == "env:" { $0 = "env:'"$travisEnv"'" } { printf "%s%s", $0, RS }' .travis.yml)"
|
|
||||||
echo "$travis" > .travis.yml
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user