github action test

Signed-off-by: André Bauer <monotek23@gmail.com>
This commit is contained in:
André Bauer 2020-03-06 15:19:15 +01:00
parent 8a1d35cf1c
commit 1e6006d725
2 changed files with 2 additions and 6 deletions

View File

@ -13,7 +13,3 @@ for DOCKER_IMAGE in ${DOCKER_IMAGES}; do
echo "Build Zammad Docker image ${DOCKER_IMAGE} with version ${DOCKER_IMAGE_TAG} for local test" echo "Build Zammad Docker image ${DOCKER_IMAGE} with version ${DOCKER_IMAGE_TAG} for local test"
docker build --pull --no-cache --build-arg BUILD_DATE="$(date -u +'%Y-%m-%dT%H:%M:%SZ')" -t "${DOCKER_IMAGE}-${DOCKER_IMAGE_TAG}" -f "containers/${DOCKER_IMAGE}/Dockerfile" . docker build --pull --no-cache --build-arg BUILD_DATE="$(date -u +'%Y-%m-%dT%H:%M:%SZ')" -t "${DOCKER_IMAGE}-${DOCKER_IMAGE_TAG}" -f "containers/${DOCKER_IMAGE}/Dockerfile" .
done done
# change images in compose file
# shellcheck disable=SC2016
sed -i -e 's#image: ${IMAGE_REPO}:##g' -e 's#${VERSION}#-ci-snapsoht#g'< docker-compose.yml

View File

@ -32,7 +32,7 @@ jobs:
with: with:
dockerfile: containers/zammad-postgresql/Dockerfile dockerfile: containers/zammad-postgresql/Dockerfile
test-docker-compose: build-and-run-docker-compose:
needs: needs:
- lint-bash-scripts - lint-bash-scripts
- lint-docker-files - lint-docker-files
@ -44,7 +44,7 @@ jobs:
- name: build docker containers - name: build docker containers
run: .github/docker-image-build.sh run: .github/docker-image-build.sh
- name: use images build by ci - name: use images build by ci
run: sed -i -e 's#VERSION=.*#VERSION=-ci-snapshot#g' < .env run: "sed -i -e 's#image: ${IMAGE_REPO}:##g' -e 's#${VERSION}#-ci-snapsoht#g'< docker-compose.yml"
- name: run docker-compose up - name: run docker-compose up
run: docker-compose up --detach run: docker-compose up --detach
- name: add autowizard file - name: add autowizard file