diff --git a/.gitea/workflows/container-build.yml b/.gitea/workflows/container-build.yml new file mode 100644 index 0000000..6c062ee --- /dev/null +++ b/.gitea/workflows/container-build.yml @@ -0,0 +1,39 @@ +name: build oses +on: + workflow_dispatch: + schedule: + - cron: "0 0 1 * *" + push: + branches: + - release + paths: + - operating-systems/** +jobs: + push: + name: "container:${{ matrix.operating-systems }}" + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + operating-systems: + - debian + steps: + - uses: actions/checkout@v2 + - uses: docker/setup-qemu-action@v1 + - uses: docker/setup-buildx-action@v1 + with: + version: "v0.5.1" + buildkitd-flags: --debug + - uses: docker/login-action@v1 + with: + registry: git.anomalous.dev + username: ${{ gitea.repository_owner }} + password: ${{ secrets.REGISTRY_TOKEN }} + - uses: docker/build-push-action@v2 + with: + context: ./operating-systems/${{ matrix.operating-systems }} + file: ./operating-systems/${{ matrix.operating-systems }}/Dockerfile + platforms: linux/amd64 + push: true + tags: | + git.anomalous.dev/57_Wolve/container:${{ matrix.operating-systems }} \ No newline at end of file