github action test
Signed-off-by: André Bauer <monotek23@gmail.com>
This commit is contained in:
parent
8a1d35cf1c
commit
1e6006d725
4
.github/docker-image-build.sh
vendored
4
.github/docker-image-build.sh
vendored
@ -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
|
|
||||||
|
4
.github/workflows/ci.yaml
vendored
4
.github/workflows/ci.yaml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user