From f437e966ef716442562a32ae43d7e0179de13358 Mon Sep 17 00:00:00 2001 From: schklom <23263086+schklom@users.noreply.github.com> Date: Sat, 8 Apr 2023 18:45:24 +0000 Subject: [PATCH 1/3] Update Actions version daily via PR --- .github/dependabot.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .github/dependabot.yml 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" From 5b2ec385f670f4b309d7f4ce578ca4fc5d2371b5 Mon Sep 17 00:00:00 2001 From: schklom <23263086+schklom@users.noreply.github.com> Date: Sat, 8 Apr 2023 18:53:52 +0000 Subject: [PATCH 2/3] Create Multi-arch-automatic-build.yml --- .../workflows/Multi-arch-automatic-build.yml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/Multi-arch-automatic-build.yml diff --git a/.github/workflows/Multi-arch-automatic-build.yml b/.github/workflows/Multi-arch-automatic-build.yml new file mode 100644 index 0000000..fdfdd28 --- /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/arm/v7,linux/arm64 # you can write just "all" if you prefer + pull: true + push: true + tags: | + mcay23/hound:latest From 43b863602c755a7a459da063bdc922b26199694a Mon Sep 17 00:00:00 2001 From: schklom <23263086+schklom@users.noreply.github.com> Date: Sat, 8 Apr 2023 18:58:31 +0000 Subject: [PATCH 3/3] Forgot amd64 --- .github/workflows/Multi-arch-automatic-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Multi-arch-automatic-build.yml b/.github/workflows/Multi-arch-automatic-build.yml index fdfdd28..ee8fe1a 100644 --- a/.github/workflows/Multi-arch-automatic-build.yml +++ b/.github/workflows/Multi-arch-automatic-build.yml @@ -43,7 +43,7 @@ jobs: context: ./web file: ./web/Dockerfile #platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x - platforms: linux/arm/v7,linux/arm64 # you can write just "all" if you prefer + platforms: linux/amd64,linux/arm/v7,linux/arm64 # you can write just "all" if you prefer pull: true push: true tags: |