Compare commits

...

3 Commits

Author SHA1 Message Date
peaceiris
f6d0e78500 chore: add docker-compose.yml 2020-07-17 16:21:18 +09:00
Shohei Ueda
71327d4646 chore: disable deno on vscode (#388) 2020-07-17 16:08:23 +09:00
Shohei Ueda
1eeaa0edab ci: add workflow_dispatch 2020-07-17 15:50:48 +09:00
4 changed files with 20 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ name: Daily Test
on: on:
schedule: schedule:
- cron: '13 13 * * *' - cron: '13 13 * * *'
workflow_dispatch:
jobs: jobs:
test: test:

View File

@@ -1,3 +1,4 @@
{ {
"git.ignoreLimitWarning": true "git.ignoreLimitWarning": true,
"deno.enable": false
} }

View File

@@ -2,14 +2,13 @@ cmd := "bash"
msg := "" msg := ""
IMAGE_NAME := actions_hugo_dev:latest IMAGE_NAME := actions_hugo_dev:latest
NODE_VERSION := $(shell cat ./.nvmrc) NODE_VERSION := $(shell cat ./.nvmrc)
DOCKER_BUILD := docker build . -t $(IMAGE_NAME) --build-arg NODE_VERSION=$(NODE_VERSION)
DOCKER_RUN := docker run --rm -i -t -v ${PWD}:/repo -v ~/.gitconfig:/root/.gitconfig $(IMAGE_NAME) DOCKER_RUN := docker run --rm -i -t -v ${PWD}:/repo -v ~/.gitconfig:/root/.gitconfig $(IMAGE_NAME)
DOCKER_RUN_CI := docker run --rm -v ${PWD}:/repo $(IMAGE_NAME) DOCKER_RUN_CI := docker run --rm -v ${PWD}:/repo $(IMAGE_NAME)
.PHONY: build .PHONY: build
build: build:
$(DOCKER_BUILD) docker build . -t $(IMAGE_NAME) --build-arg NODE_VERSION=$(NODE_VERSION)
.PHONY: run .PHONY: run
run: run:

16
docker-compose.yml Normal file
View File

@@ -0,0 +1,16 @@
version: '3.2'
services:
dev:
image: 'docker.pkg.github.com/peaceiris/actions-hugo/dev:latest'
build:
context: .
# cache_from:
# - 'docker.pkg.github.com/peaceiris/actions-hugo/dev:latest'
container_name: peaceiris_actions_hugo_dev_latest
volumes:
- ${PWD}:/repo
stdin_open: true
tty: true
command:
- bash