Browse Source

ci: initial ci script

master
Michael Bianco 1 year ago
parent
commit
e733046ddc
No known key found for this signature in database GPG Key ID: E5E32D3B0D0B4261
  1. 7
      .github/dependabot.yml
  2. 31
      .github/workflows/build_and_publish.yml

7
.github/dependabot.yml

@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

31
.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 }}
Loading…
Cancel
Save