Skip to content
Snippets Groups Projects
Verified Commit ec98006c authored by egon w. stemle's avatar egon w. stemle :robot:
Browse files

earthly-fy release.sh

parent 3ba42a39
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
set -e
VERSION=${1:-latest}
TYPE=${2:-staging}
#export DOCKER_BUILDKIT=1
echo "$VERSION" > .release
docker build \
--build-arg LABEL_VERSION="$VERSION" \
--build-arg LABEL_BUILD_DATE="$(date -R)" \
-t "gitlab.inf.unibz.it:4567/commul/docker/clarin-dspace/$TYPE/dspace:$VERSION" . -f Dockerfile.dspace
docker build \
--build-arg LABEL_VERSION="$VERSION" \
--build-arg LABEL_BUILD_DATE="$(date -R)" \
-t "gitlab.inf.unibz.it:4567/commul/docker/clarin-dspace/$TYPE/nginx:$VERSION" . -f Dockerfile.nginx
docker build \
--build-arg LABEL_VERSION="$VERSION" \
--build-arg LABEL_BUILD_DATE="$(date -R)" \
-t "gitlab.inf.unibz.it:4567/commul/docker/clarin-dspace/$TYPE/postgres:$VERSION" . -f Dockerfile.postgres
docker push "gitlab.inf.unibz.it:4567/commul/docker/clarin-dspace/$TYPE/dspace:$VERSION"
docker push "gitlab.inf.unibz.it:4567/commul/docker/clarin-dspace/$TYPE/nginx:$VERSION"
docker push "gitlab.inf.unibz.it:4567/commul/docker/clarin-dspace/$TYPE/postgres:$VERSION"
ERCC_TAG="$(git describe --tags --abbrev=0 $(git rev-list --tags --max-count=1))"
VERSION=${ERCC_TAG:-latest}
earthly --push +docker
echo sed ../kubernetes/*-deployment.yaml -e \"'s#\(.*image: gitlab.inf.unibz.it:4567/.*:\).*#\1'"${VERSION}#"\"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment