mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
chore(test): test running docker after build (#8010)
* chore(test): test running docker after build * add test in the same step * add count times * workflow typo * add name when output * if then * test docker * use id * no tag * what is docker id * load single platform * do not test multi-arch for now * no load
This commit is contained in:
@@ -7,29 +7,21 @@ on:
|
||||
- 'lib/**'
|
||||
- 'Dockerfile'
|
||||
- 'package.json'
|
||||
push:
|
||||
branches: '*'
|
||||
paths:
|
||||
- '.github/workflows/**'
|
||||
- 'lib/**'
|
||||
- 'Dockerfile'
|
||||
- 'package.json'
|
||||
|
||||
# Please, always create a pull request instead of push to master.
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
-
|
||||
name: Build dockerfile (without push)
|
||||
run: |
|
||||
docker buildx build \
|
||||
--platform=linux/amd64,linux/arm/v7,linux/arm64 \
|
||||
--output "type=image,push=false" \
|
||||
--file ./Dockerfile .
|
||||
- name: Build dockerfile and Run (without push)
|
||||
run: |
|
||||
docker build \
|
||||
--tag rsshub:latest \
|
||||
--file ./Dockerfile .
|
||||
chmod +x scripts/docker/test-docker.sh
|
||||
scripts/docker/test-docker.sh
|
||||
Reference in New Issue
Block a user