From fad71e9345a1d367fdd18eb306387394dc352589 Mon Sep 17 00:00:00 2001 From: Xeovalyte Date: Mon, 1 May 2023 19:59:39 +0200 Subject: [PATCH] changed ci workflow --- .gitea/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ .woodpecker.yml | 15 --------------- 2 files changed, 33 insertions(+), 15 deletions(-) create mode 100644 .gitea/workflows/ci.yml delete mode 100644 .woodpecker.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..e0e9a16 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,33 @@ +name: Build and Deploy +on: [push] + +jobs: + Deploy: + runs-on: ubuntu-latest + + container: + image: catthehacker/ubuntu:act-latest + + steps: + - uses: actions/checkout@v3 + - name: Use Nodejs + uses: actions/setup-node@v3 + with: + node-version: 18 + - run: npm install + - run: npm run build + + - uses: docker/setup-qemu-action@v2 + - uses: docker/setup-buildx-action@v2 + + - uses: docker/login-action@v2 + with: + registry: gitea.xeovalyte.dev + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} + + - run: docker buildx build -t gitea.xeovalyte.dev/xeovalyte/wrbapp:latest-arm --load --platform=linux/arm64 . + - run: docker push gitea.xeovalyte.dev/xeovalyte/wrbapp:latest-arm + + - run: docker buildx build -t gitea.xeovalyte.dev/xeovalyte/wrbapp:latest --load --platform=linux/amd64 . + - run: docker push gitea.xeovalyte.dev/xeovalyte/wrbapp:latest diff --git a/.woodpecker.yml b/.woodpecker.yml deleted file mode 100644 index a9b39c5..0000000 --- a/.woodpecker.yml +++ /dev/null @@ -1,15 +0,0 @@ -pipeline: - publish-dev: - image: plugins/docker - secrets: - - docker_password - settings: - username: xeovalyte - password: - from_secret: docker_password - repo: gitea.xeovalyte.dev/xeovalyte/wrbapp - tags: - - latest - registry: gitea.xeovalyte.dev - when: - branch: dev