Compare commits

...

7 Commits

Author SHA1 Message Date
Shohei Ueda
a8d38ee3a8
Merge f6d0e78500 into 3b443076f0 2024-10-01 17:02:04 +02:00
dependabot[bot]
3b443076f0
ci: bump peaceiris/actions-hugo from 2.6.0 to 3.0.0 (#653)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-05 12:39:54 +09:00
dependabot[bot]
764796d276
ci: bump actions/upload-artifact from 3 to 4 (#654)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-05 12:39:40 +09:00
dependabot[bot]
e177dc33cb
ci: bump codecov/codecov-action from 3 to 4 (#655)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-05 12:39:29 +09:00
dependabot[bot]
711df4ed64
ci: bump actions/dependency-review-action from 3 to 4 (#656)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-05 12:39:13 +09:00
dependabot[bot]
9d57878417
ci: bump github/codeql-action from 2 to 3 (#657)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-05 11:57:05 +09:00
peaceiris
f6d0e78500
chore: add docker-compose.yml 2020-07-17 16:21:18 +09:00
6 changed files with 24 additions and 9 deletions

View File

@ -13,12 +13,12 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v2 uses: github/codeql-action/init@v3
with: with:
languages: javascript languages: javascript
- name: Autobuild - name: Autobuild
uses: github/codeql-action/autobuild@v2 uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2 uses: github/codeql-action/analyze@v3

View File

@ -13,4 +13,4 @@ jobs:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/dependency-review-action@v3 - uses: actions/dependency-review-action@v4

View File

@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Setup Hugo - name: Setup Hugo
uses: peaceiris/actions-hugo@v2.6.0 uses: peaceiris/actions-hugo@v3.0.0
with: with:
hugo-version: ${{ matrix.hugo-version }} hugo-version: ${{ matrix.hugo-version }}
extended: ${{ matrix.extended }} extended: ${{ matrix.extended }}

View File

@ -47,9 +47,9 @@ jobs:
- run: npm test - run: npm test
- name: Upload test coverage as artifact - name: Upload test coverage as artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: coverage-${{ matrix.os }} name: coverage-${{ matrix.os }}
path: coverage path: coverage
- uses: codecov/codecov-action@v3 - uses: codecov/codecov-action@v4

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