forked from e621ng/e621ng
[CI] Try running actions with docker-compose
This commit is contained in:
parent
996f1c30c1
commit
3fc87634eb
4
.github/prepare-docker-image/action.yml
vendored
4
.github/prepare-docker-image/action.yml
vendored
@ -12,8 +12,8 @@ runs:
|
||||
with:
|
||||
cache-from: type=gha
|
||||
load: true
|
||||
tags: e621:test
|
||||
tags: e621
|
||||
|
||||
- name: Set docker run command
|
||||
run: echo "DOCKER_RUN=docker run --rm --network host -e POSTGRES_HOST=localhost -e RAILS_ENV=test -e CI=true -v $PWD:/app e621:test" >> "$GITHUB_ENV"
|
||||
run: echo "DOCKER_RUN=docker-compose run -e CI=true" >> "$GITHUB_ENV"
|
||||
shell: bash
|
||||
|
4
.github/workflows/checks.yml
vendored
4
.github/workflows/checks.yml
vendored
@ -24,7 +24,7 @@ jobs:
|
||||
with:
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
tags: e621:test
|
||||
tags: e621
|
||||
|
||||
rubocop:
|
||||
runs-on: ubuntu-latest
|
||||
@ -35,4 +35,4 @@ jobs:
|
||||
- uses: ./.github/prepare-docker-image
|
||||
|
||||
- name: Run Rubocop
|
||||
run: $DOCKER_RUN bundle exec rubocop --format github
|
||||
run: $DOCKER_RUN rubocop --format github
|
||||
|
Loading…
Reference in New Issue
Block a user