From 07e781c2ca7f9ad449d398c80e52538a695cce1d Mon Sep 17 00:00:00 2001 From: Fijxu Date: Fri, 22 Mar 2024 14:31:59 -0300 Subject: [PATCH] test123 --- .forgejo/workflows/ci.yml | 36 +++++++++++++++++++ {.github => .github-archive}/workflows/ci.yml | 0 2 files changed, 36 insertions(+) create mode 100644 .forgejo/workflows/ci.yml rename {.github => .github-archive}/workflows/ci.yml (100%) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml new file mode 100644 index 0000000..eed57fa --- /dev/null +++ b/.forgejo/workflows/ci.yml @@ -0,0 +1,36 @@ +name: 'Suyu Docker Image CI' +on: + workflow_dispatch: + inputs: {} + schedule: + - cron: '0 7 * * 0' + push: + branches: ["dev"] + pull_request: + branches: ["dev"] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + # image: ["linux-clang-format", "linux-fresh", "linux-mingw", "linux-transifex"] + image: ["linux-clang-format", "linux-fresh", "linux-mingw"] + + steps: + - uses: actions/checkout@v2 + - uses: docker/setup-buildx-action@v1 + name: Setup Docker BuildX system + - name: Login to the Suyu Package Registry + uses: docker/login-action@v1 + if: (github.ref == 'refs/heads/dev') && (github.repository == 'suyu/build-environments') + with: + registry: git.suyu.dev + username: ${{ secrets.FORGEJO_USERNAME }} + password: ${{ secrets.FORGEJO_TOKEN }} + - uses: docker/build-push-action@v2 + name: Build image + with: + push: ${{ (github.ref == 'refs/heads/dev') && (github.repository == 'suyu/build-environments') }} + context: ${{ matrix.image }} + tags: suyu/build-environments:${{ matrix.image }} diff --git a/.github/workflows/ci.yml b/.github-archive/workflows/ci.yml similarity index 100% rename from .github/workflows/ci.yml rename to .github-archive/workflows/ci.yml