diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..2c7d170 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: + # Maintain dependencies for GitHub Actions + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/Multi-arch-automatic-build.yml b/.github/workflows/Multi-arch-automatic-build.yml new file mode 100644 index 0000000..ee8fe1a --- /dev/null +++ b/.github/workflows/Multi-arch-automatic-build.yml @@ -0,0 +1,50 @@ +name: Multi-arch-automatic-build + +on: + # Triggers the workflow, remove the triggers you don't like/want + #schedule: + # * is a special character in YAML so you have to quote this string + #- cron: '0 0 * * *' + push: + branches: [ main ] + pull_request: + branches: [ main ] + workflow_dispatch: # This one is if you want to manually trigger in the Actions tab, useful to see if it works as intended + +jobs: + buildandpush: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + ref: 'main' # branch, I think you can remove it + + # https://github.com/docker/setup-qemu-action#usage + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + + # https://github.com/marketplace/actions/docker-setup-buildx + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v1 + + # https://github.com/docker/login-action#docker-hub + - name: Login to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + # https://github.com/docker/build-push-action#multi-platform-image + - name: Build and push hound + uses: docker/build-push-action@v2 + with: + context: ./web + file: ./web/Dockerfile + #platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x + platforms: linux/amd64,linux/arm/v7,linux/arm64 # you can write just "all" if you prefer + pull: true + push: true + tags: | + mcay23/hound:latest