forked from dsavell/docker-grav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·23 lines (20 loc) · 943 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
export DOCKER_ID_USER=''
GRAV_VERSION=$(curl -sX GET "https://api.github.com/repos/getgrav/grav/releases/latest" | jq -r .tag_name)
export GRAV_VERSION
## Build Grav Core
docker build -t grav -f Dockerfile.gravcore .
docker tag grav ${DOCKER_ID_USER}/grav:latest
docker tag grav ${DOCKER_ID_USER}/grav:core
docker tag grav ${DOCKER_ID_USER}/grav:"${GRAV_VERSION}"
docker tag grav ${DOCKER_ID_USER}/grav:core-"${GRAV_VERSION}"
docker push ${DOCKER_ID_USER}/grav:latest
docker push ${DOCKER_ID_USER}/grav:core
docker push ${DOCKER_ID_USER}/grav:"${GRAV_VERSION}"
docker push ${DOCKER_ID_USER}/grav:core-"${GRAV_VERSION}"
## Build Grav Core Admin Plugin
docker build -t grav:admin -f Dockerfile.gravcoreadmin .
docker tag grav:admin ${DOCKER_ID_USER}/grav:admin
docker tag grav:admin ${DOCKER_ID_USER}/grav:admin-"${GRAV_VERSION}"
docker push ${DOCKER_ID_USER}/grav:admin
docker push ${DOCKER_ID_USER}/grav:admin"-${GRAV_VERSION}"