From a87decdedbd40fc427bf1b2329d358170577ca1d Mon Sep 17 00:00:00 2001 From: Koopa Date: Wed, 10 Jan 2024 02:50:13 -0500 Subject: [PATCH] ci: init lol this is gonna end badly --- .github/workflows/build-deploy.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/build-deploy.yml diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml new file mode 100644 index 0000000..d584302 --- /dev/null +++ b/.github/workflows/build-deploy.yml @@ -0,0 +1,28 @@ +name: 'Build and Deploy' +on: + push: + branches: + - 'main' +jobs: + build_deploy: + runs-on: 'ubuntu-22-04' + # See: https://github.com/docker/build-push-action + steps: + # Docs: https://github.com/docker/setup-qemu-action + - name: 'Setup QEMU to emulate other platforms' + uses: 'docker/setup-qemu-action@v3' + # Docs: https://github.com/docker/setup-buildx-action + - name: 'Setup Docker Buildx' + uses: 'docker/setup-buildx-action@v3' + # Docs: https://github.com/docker/login-action + # TODO: make HackBU account + # - name: Login to Docker Hub + # uses: docker/login-action@v3 + - name: 'Build and push' + uses: 'docker/build-push-action@v5' + with: + context: '.' + file: '{context}/Dockerfile.pnpm' + platforms: 'linux/amd64,linux/arm64' + # TODO + push: 'false'