-
Notifications
You must be signed in to change notification settings - Fork 40
For #105 and #109 : Add periodic build and Ubuntu update #111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,85 @@ | ||
| name: ci | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| schedule: | ||
| - cron: "0 7 7 * *" | ||
|
|
||
| jobs: | ||
| set-date: | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| date: ${{ steps.date.outputs.DATE }} | ||
| steps: | ||
| - name: Set Date | ||
| id: date | ||
| run: echo "DATE=$(date +"%m-%Y")" >> $GITHUB_OUTPUT | ||
|
|
||
| base: | ||
| needs: set-date | ||
| uses: ./.github/workflows/docker-build.yml | ||
| with: | ||
| dockerfile: Dockerfile | ||
| tag: ${{ vars.DOCKERHUB_USERNAME }}/boinc:latest,${{ vars.DOCKERHUB_USERNAME }}/boinc:${{ needs.set-date.outputs.date }} | ||
| platforms: linux/amd64,linux/arm64,linux/arm/v7 | ||
| secrets: inherit | ||
|
|
||
| alpine: | ||
| needs: set-date | ||
| uses: ./.github/workflows/docker-build.yml | ||
| with: | ||
| dockerfile: Dockerfile.alpine | ||
| tag: ${{ vars.DOCKERHUB_USERNAME }}/boinc-alpine:edge,${{ vars.DOCKERHUB_USERNAME }}/boinc-alpine:${{ needs.set-date.outputs.date }} | ||
| platforms: linux/amd64,linux/arm64,linux/arm/v7 | ||
| secrets: inherit | ||
|
|
||
| AMD: | ||
| needs: set-date | ||
| uses: ./.github/workflows/docker-build.yml | ||
| with: | ||
| dockerfile: Dockerfile.amd | ||
| tag: ${{ vars.DOCKERHUB_USERNAME }}/boinc-amd:latest,${{ vars.DOCKERHUB_USERNAME }}/boinc-amd:${{ needs.set-date.outputs.date }} | ||
| secrets: inherit | ||
|
|
||
| intel: | ||
| needs: | ||
| - set-date | ||
| - base | ||
| uses: ./.github/workflows/docker-build.yml | ||
| with: | ||
| dockerfile: Dockerfile.intel | ||
| tag: ${{ vars.DOCKERHUB_USERNAME }}/boinc-intel:latest,${{ vars.DOCKERHUB_USERNAME }}/boinc-intel:${{ needs.set-date.outputs.date }} | ||
| platforms: linux/amd64 | ||
| secrets: inherit | ||
|
|
||
| virtualbox: | ||
| needs: | ||
| - set-date | ||
| - base | ||
| uses: ./.github/workflows/docker-build.yml | ||
| with: | ||
| dockerfile: Dockerfile.virtualbox | ||
| tag: ${{ vars.DOCKERHUB_USERNAME }}/boinc-virtualbox:latest,${{ vars.DOCKERHUB_USERNAME }}/boinc-virtualbox:${{ needs.set-date.outputs.date }} | ||
| platforms: linux/amd64 | ||
| secrets: inherit | ||
|
|
||
| nvidia: | ||
| needs: set-date | ||
| uses: ./.github/workflows/docker-build.yml | ||
| with: | ||
| dockerfile: Dockerfile.nvidia | ||
| tag: ${{ vars.DOCKERHUB_USERNAME }}/boinc-nvidia:latest,${{ vars.DOCKERHUB_USERNAME }}/boinc-nvidia:${{ needs.set-date.outputs.date }} | ||
| platforms: linux/amd64,linux/arm64 | ||
| secrets: inherit | ||
|
|
||
| multi-gpu: | ||
| needs: | ||
| - set-date | ||
| - nvidia | ||
| uses: ./.github/workflows/docker-build.yml | ||
| with: | ||
| dockerfile: Dockerfile.multi-gpu | ||
| tag: ${{ vars.DOCKERHUB_USERNAME }}/boinc-multi-gpu:latest,${{ vars.DOCKERHUB_USERNAME }}/boinc-multi-gpu:${{ needs.set-date.outputs.date }} | ||
| platforms: linux/amd64 | ||
| secrets: inherit |
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This CI is a "template" used by the monthly build CI to build each images. This CI is a simple build and push image with the support of the multiarch images. Thus dedicated dockerfiles for armv7, v7, x86 & x64 are not needed anymore as the ubuntu image provide all archs. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| name: docker-build | ||
|
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| dockerfile: | ||
| required: true | ||
| type: string | ||
| tag: | ||
| required: true | ||
| type: string | ||
| platforms: | ||
| required: false | ||
| default: linux/amd64 | ||
| type: string | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Login to Docker Hub | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| username: ${{ vars.DOCKERHUB_USERNAME }} | ||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
|
||
| - name: Set up QEMU | ||
| uses: docker/setup-qemu-action@v3 | ||
|
|
||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
|
|
||
| - name: Build and push | ||
| uses: docker/build-push-action@v6 | ||
| with: | ||
| platforms: ${{ inputs.platforms }} | ||
| push: true | ||
| tags: ${{ inputs.tag }} | ||
| file: ${{ inputs.dockerfile }} |
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The docker file dedicated to armv7 is not needed anymore as the official Ubuntu supports multiarch : https://hub.docker.com/layers/library/ubuntu/latest/images/sha256-8fe30db6f4cded743d10faed55c5b7d1c49b3a56b55967923fd738e66153e5a0 |
This file was deleted.
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The docker file dedicated to armv8 is not needed anymore as the official Ubuntu supports multiarch : https://hub.docker.com/layers/library/ubuntu/latest/images/sha256-97b5e4984a1c353da6a9406c84554aab0422735a1335427a9e883ac477bd71df |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This CI will run monthly to build a new version of the image, pulling the latest code of BOINC available in the Ubuntu repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Var DOCKERHUB_USERNAME and secret DOCKERHUB_TOKEN need to be set in repo configuration.