mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2025-06-17 17:45:29 +08:00
Compare commits
3 Commits
a8d38ee3a8
...
3ba8a3d969
Author | SHA1 | Date | |
---|---|---|---|
![]() |
3ba8a3d969 | ||
![]() |
3a287949d3 | ||
![]() |
f6d0e78500 |
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -52,4 +52,4 @@ jobs:
|
||||
name: coverage-${{ matrix.os }}
|
||||
path: coverage
|
||||
|
||||
- uses: codecov/codecov-action@v4
|
||||
- uses: codecov/codecov-action@v5
|
||||
|
3
Makefile
3
Makefile
@ -2,14 +2,13 @@ cmd := "bash"
|
||||
msg := ""
|
||||
IMAGE_NAME := actions_hugo_dev:latest
|
||||
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_CI := docker run --rm -v ${PWD}:/repo $(IMAGE_NAME)
|
||||
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
$(DOCKER_BUILD)
|
||||
docker build . -t $(IMAGE_NAME) --build-arg NODE_VERSION=$(NODE_VERSION)
|
||||
|
||||
.PHONY: run
|
||||
run:
|
||||
|
16
docker-compose.yml
Normal file
16
docker-compose.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user