diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..6d0f747 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,19 @@ +name: Build on push + +on: + push: + branches: [ "*" ] + pull_request: + branches: [ "main" ] + workflow_dispatch: {} + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - run: docker build . -t guardianmultimedia/spacemon:${{ github.run_number }} + - run: docker push guardianmultimedia/spacemon:${{ github.run_number }} \ No newline at end of file