f93db7f2e8
* updated image to 3.3.0-11 Signed-off-by: André Bauer <monotek23@gmail.com> * add image build to ci / changed db cehcks Signed-off-by: André Bauer <monotek23@gmail.com> * added repo user var Signed-off-by: André Bauer <monotek23@gmail.com> * added needs Signed-off-by: André Bauer <monotek23@gmail.com> * added executable bit Signed-off-by: André Bauer <monotek23@gmail.com> * test Signed-off-by: André Bauer <monotek23@gmail.com> * test Signed-off-by: André Bauer <monotek23@gmail.com> * test Signed-off-by: André Bauer <monotek23@gmail.com>
67 lines
1.9 KiB
YAML
67 lines
1.9 KiB
YAML
name: ci
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
lint-bash-scripts:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
- name: Lint Bash scripts
|
|
uses: docker://koalaman/shellcheck-alpine:v0.7.0
|
|
with:
|
|
args: .github/lint-scripts.sh
|
|
|
|
lint-docker-files:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
- name: lint zammad dockerfile
|
|
uses: brpaz/hadolint-action@master
|
|
with:
|
|
dockerfile: containers/zammad/Dockerfile
|
|
- name: lint elasticsearch dockerfile
|
|
uses: brpaz/hadolint-action@master
|
|
with:
|
|
dockerfile: containers/zammad-elasticsearch/Dockerfile
|
|
- name: lint postgresql dockerfile
|
|
uses: brpaz/hadolint-action@master
|
|
with:
|
|
dockerfile: containers/zammad-postgresql/Dockerfile
|
|
|
|
build-containers:
|
|
needs:
|
|
- lint-bash-scripts
|
|
- lint-docker-files
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
|
REPO_USER: ${{ secrets.REPO_USER }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
- name: build docker containers
|
|
run: .github/docker-image-build.sh
|
|
|
|
test-docker-compose:
|
|
needs: build-containers
|
|
timeout-minutes: 10
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
- name: use images build by ci
|
|
run: sed -i -e 's#VERSION=.*#VERSION=-ci-snapshot#g' < .env
|
|
- name: pull container images
|
|
run: docker-compose pull
|
|
- name: run docker-compose up
|
|
run: docker-compose up --detach
|
|
- name: add autowizard file
|
|
run: docker cp .github/auto_wizard.json zammad-docker-compose_zammad-railsserver_1:/opt/zammad
|
|
- name: run tests
|
|
run: .github/tests.sh
|