Skip to content

Commit

Permalink
Docker build & editor config from "Various docker fixes (princeton-vl#22
Browse files Browse the repository at this point in the history
)"

Co-authored-by: datashaman <[email protected]>
  • Loading branch information
pvl-bot and datashaman committed Oct 4, 2023
1 parent 887cd55 commit c367b6b
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -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
15 changes: 15 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -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
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c367b6b

Please sign in to comment.