From c2f5d7eac5c2a5b0da03928a310db99242fd4acf Mon Sep 17 00:00:00 2001 From: Jack Andrews <45759583+potts99@users.noreply.github.com> Date: Sun, 31 Mar 2024 00:38:23 +0000 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..d0d37764b --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,39 @@ +name: Main Client Build + +on: + push: + branches: + - master + +jobs: + build: + runs-on: self-hosted + steps: + - name: Get current time + uses: 1466587594/get-current-time@v2 + id: current-time + with: + format: YYYY-MM-DD--HH + + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} + + - name: Build and push + uses: docker/build-push-action@v2 + with: + platforms: linux/amd64,linux/arm64 + push: true + tags: | + pepperlabs/peppermint:latest