From e733046ddca48b878be23afeac671ffd0bc70291 Mon Sep 17 00:00:00 2001 From: Michael Bianco Date: Sat, 14 Oct 2023 13:19:12 -0600 Subject: [PATCH] ci: initial ci script --- .github/dependabot.yml | 7 ++++++ .github/workflows/build_and_publish.yml | 31 +++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/build_and_publish.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..718572b --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 + +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/build_and_publish.yml b/.github/workflows/build_and_publish.yml new file mode 100644 index 0000000..972614d --- /dev/null +++ b/.github/workflows/build_and_publish.yml @@ -0,0 +1,31 @@ +name: Build and Push Docker Images + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to DockerHub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and Push Docker Images + run: make all + +env: + GITHUB_REF: ${{ github.ref }}