From c367b6bdf5106a9eb4820123ea6d9201f8719586 Mon Sep 17 00:00:00 2001 From: pvl-bot Date: Sat, 19 Aug 2023 15:47:39 -0400 Subject: [PATCH] Docker build & editor config from "Various docker fixes (#22)" Co-authored-by: datashaman --- .editorconfig | 20 ++++++++++++++++++++ .gitattributes | 15 +++++++++++++++ .github/workflows/build.yml | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes create mode 100644 .github/workflows/build.yml diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..96696c528 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,20 @@ +# EditorConfig is awesome: http://EditorConfig.org +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[{Makefile,*.mak}] +indent_size = 1 +indent_style = tab + +[*.md] +trim_trailing_whitespace = false + +[{Makefile,*.sh,*.yml}] +indent_size = 2 \ No newline at end of file diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..c86bfc182 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,15 @@ +* text=auto eol=lf whitespace=tab-in-indent,blank-at-eol,tabwidth=4 +Makefile text whitespace=-tab-in-indent,blank-at-eol,tabwidth=4 +*.eot binary +*.gif binary +*.jpeg binary +*.jpg binary +*.pdf binary +*.png binary +*.svg binary +*.ttf binary +*.woff binary +*.woff2 binary +*.zip binary +*.tgz binary +*.gz binary \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..6e3478f14 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,33 @@ +name: build + +on: + pull_request: + branches: + - main + push: + branches: + - main + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - + when: false + name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v4 + with: + push: false + tags: infinigen:latest \ No newline at end of file