Skip to content

Commit

Permalink
ci: use go-idp/pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
whatwewant committed Sep 30, 2024
1 parent 92866ba commit 37c7228
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 14 deletions.
38 changes: 24 additions & 14 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,29 +50,39 @@ jobs:
test:
runs-on: ubuntu-latest
# container: whatwewant/zmicro:v1
container: whatwewant/go-idp-pipeline:latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: "0"

- name: Setup Docker
uses: zmicro-design/action-setup-docker@v1
# - name: Setup Docker
# uses: zmicro-design/action-setup-docker@v1

- name: Install in ubuntu
run: docker build -t zmicro:ubuntu -f config/docker/Dockerfile.ubuntu .
# - name: Install in ubuntu
# run: docker build -t zmicro:ubuntu -f config/docker/Dockerfile.ubuntu .

- name: Install in alpine
run: docker build -t zmicro:alpine -f config/docker/Dockerfile.alpine .
# - name: Install in alpine
# run: docker build -t zmicro:alpine -f config/docker/Dockerfile.alpine .

- name: Install in centos
run: docker build -t zmicro:centos -f config/docker/Dockerfile.centos .
# - name: Install in centos
# run: docker build -t zmicro:centos -f config/docker/Dockerfile.centos .

# - name: Install in fedora
# run: docker build -t zmicro:fedora -f config/docker/Dockerfile.fedora .
# # - name: Install in fedora
# # run: docker build -t zmicro:fedora -f config/docker/Dockerfile.fedora .

- name: Install in archlinux
run: docker build -t zmicro:archlinux -f config/docker/Dockerfile.archlinux .
# - name: Install in archlinux
# run: docker build -t zmicro:archlinux -f config/docker/Dockerfile.archlinux .

# - name: Install in debian
# run: docker build -t zmicro:debian -f config/docker/Dockerfile.debian .

- name: Install Docker Buildx
run: zmicro package install docker-buildx

- name: Run Pipeline
run: pipeline run
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Install in debian
run: docker build -t zmicro:debian -f config/docker/Dockerfile.debian .
21 changes: 21 additions & 0 deletions .go-idp/pipeline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: test linux

stages:
- name: test
jobs:
- name: test
steps:
- name: Install in ubuntu
command: docker build -t zmicro:ubuntu -f config/docker/Dockerfile.ubuntu .

- name: Install in alpine
command: docker build -t zmicro:alpine -f config/docker/Dockerfile.alpine .

- name: Install in centos
command: docker build -t zmicro:centos -f config/docker/Dockerfile.centos .

- name: Install in archlinux
command: docker build -t zmicro:archlinux -f config/docker/Dockerfile.archlinux .

- name: Install in debian
command: docker build -t zmicro:debian -f config/docker/Dockerfile.debian .

0 comments on commit 37c7228

Please sign in to comment.