From 8d311fe3b181ca23203c9e23ae969d43c625a89e Mon Sep 17 00:00:00 2001 From: Lars Olzem Date: Fri, 28 Apr 2023 19:22:59 +0200 Subject: [PATCH] add github actions --- .github/FUNDING.yml | 2 ++ .github/workflows/build.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/FUNDING.yml create mode 100644 .github/workflows/build.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..93d155c --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,2 @@ +github: hackebein +custom: paypal.me/hackebein diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..9eb5764 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,27 @@ +name: Build +on: + push: + branches: + - master + schedule: + - cron: 0 4 * * 1 +jobs: + latest: + runs-on: ubuntu-latest + steps: + - 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_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v2 + with: + push: 'true' + platforms: linux/amd64 + tags: hackebein/garrysmod:latest \ No newline at end of file