Update build environment to crystal 0.33
This commit is contained in:
parent
b1331aa8c2
commit
f1f3bf63c0
@ -67,18 +67,18 @@ workflows:
|
|||||||
version: 2
|
version: 2
|
||||||
test_and_build:
|
test_and_build:
|
||||||
jobs:
|
jobs:
|
||||||
# - build_server
|
- build_server
|
||||||
# - build_assets
|
- build_assets
|
||||||
# - build_docker_image:
|
- build_docker_image:
|
||||||
# requires:
|
requires:
|
||||||
# - build_server
|
- build_server
|
||||||
# - build_assets
|
- build_assets
|
||||||
# filters:
|
filters:
|
||||||
# branches:
|
branches:
|
||||||
# only: master
|
only: master
|
||||||
- deploy_app:
|
- deploy_app:
|
||||||
# requires:
|
requires:
|
||||||
# - build_docker_image
|
- build_docker_image
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
only: master
|
only: master
|
||||||
|
3
Makefile
3
Makefile
@ -12,6 +12,9 @@ build-docker:
|
|||||||
install-shards:
|
install-shards:
|
||||||
shards install
|
shards install
|
||||||
|
|
||||||
|
update-shards:
|
||||||
|
shards update
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: build-docker install-shards install-assets build-assets
|
install: build-docker install-shards install-assets build-assets
|
||||||
|
|
||||||
|
@ -1,6 +1 @@
|
|||||||
FROM alpine:3.10.3 as builder
|
FROM crystallang/crystal:0.33.0-alpine
|
||||||
|
|
||||||
COPY ./docker/provide-crystal-alpine /opt/provision/provide-crystal-alpine
|
|
||||||
|
|
||||||
# Install crystal and dev libs
|
|
||||||
RUN /opt/provision/provide-crystal-alpine
|
|
||||||
|
@ -1,34 +0,0 @@
|
|||||||
#!/usr/bin/env sh
|
|
||||||
|
|
||||||
set -eux
|
|
||||||
|
|
||||||
source /home/dayoff/.env
|
|
||||||
|
|
||||||
IMAGE=cr.yandex/crplfk0168i4o8kd7ade/dayoff
|
|
||||||
DATA_PATH=/home/dayoff/data
|
|
||||||
CONTAINER_NAME="${CONTAINER_PREFIX}-server"
|
|
||||||
|
|
||||||
mkdir -p "$DATA_PATH"
|
|
||||||
|
|
||||||
TTY=
|
|
||||||
|
|
||||||
if [ -t 1 ] ; then
|
|
||||||
TTY=-t
|
|
||||||
fi
|
|
||||||
|
|
||||||
cat /home/dayoff/yandex_cloud_docker_registry_key.json | docker login --username json_key --password-stdin cr.yandex
|
|
||||||
|
|
||||||
docker pull "${IMAGE}"
|
|
||||||
|
|
||||||
docker stop "${CONTAINER_NAME}" || true
|
|
||||||
docker rm "${CONTAINER_NAME}" || true
|
|
||||||
|
|
||||||
docker run $TTY \
|
|
||||||
--init \
|
|
||||||
--detach \
|
|
||||||
--name "${CONTAINER_NAME}" \
|
|
||||||
--restart=unless-stopped \
|
|
||||||
-u "$(id -u):$(id -g)" \
|
|
||||||
-p "$WEB_SERVER_PORT:3000" \
|
|
||||||
-v "$DATA_PATH:/opt/dayoff" \
|
|
||||||
$IMAGE
|
|
@ -1,12 +0,0 @@
|
|||||||
#!/usr/bin/env sh
|
|
||||||
|
|
||||||
# Install crystal and dev libs
|
|
||||||
apk add -u \
|
|
||||||
make \
|
|
||||||
crystal \
|
|
||||||
shards \
|
|
||||||
tzdata \
|
|
||||||
libc-dev \
|
|
||||||
zlib-dev \
|
|
||||||
libressl-dev \
|
|
||||||
yaml-dev
|
|
@ -2,15 +2,15 @@ version: 1.0
|
|||||||
shards:
|
shards:
|
||||||
ameba:
|
ameba:
|
||||||
github: crystal-ameba/ameba
|
github: crystal-ameba/ameba
|
||||||
version: 0.10.1
|
version: 0.11.0
|
||||||
|
|
||||||
exception_page:
|
exception_page:
|
||||||
github: crystal-loot/exception_page
|
github: crystal-loot/exception_page
|
||||||
version: 0.1.2
|
version: 0.1.4
|
||||||
|
|
||||||
kemal:
|
kemal:
|
||||||
github: kemalcr/kemal
|
github: kemalcr/kemal
|
||||||
version: 0.25.2
|
version: 0.26.1
|
||||||
|
|
||||||
kilt:
|
kilt:
|
||||||
github: jeromegn/kilt
|
github: jeromegn/kilt
|
||||||
|
@ -15,9 +15,9 @@ license: MIT
|
|||||||
dependencies:
|
dependencies:
|
||||||
kemal:
|
kemal:
|
||||||
github: kemalcr/kemal
|
github: kemalcr/kemal
|
||||||
version: ~> 0.25.2
|
version: ~> 0.26.1
|
||||||
|
|
||||||
development_dependencies:
|
development_dependencies:
|
||||||
ameba:
|
ameba:
|
||||||
github: crystal-ameba/ameba
|
github: crystal-ameba/ameba
|
||||||
version: ~> 0.10.1
|
version: ~> 0.11.0
|
||||||
|
Loading…
Reference in New Issue
Block a user