Skip to content

Commit

Permalink
Add Docker Buildx Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaopan committed Jun 9, 2024
1 parent 8d6aa78 commit 0890574
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 91 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/BuildTest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: BuildTest

on:
push:
branches:
- master
workflow_dispatch:

jobs:
buildx:
#timeout-minutes: 10
runs-on: ubuntu-latest

steps:
-
name: Checkout
uses: actions/checkout@v4
-
# Add support for more platforms with QEMU (optional)
# https://github.com/docker/setup-qemu-action
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

-
name: Copy .env
run: cp .env.example .env

-
name: Start containers
run: docker-compose -f "docker-compose.yml" up -d --build nginx redis frps mysql

-
name: Down tests
run: docker-compose -f "docker-compose.yml" down nginx redis frps mysql
91 changes: 0 additions & 91 deletions .github/workflows/docker-image.ymlx

This file was deleted.

0 comments on commit 0890574

Please sign in to comment.