Skip to content
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

build and push docker image #19

Open
dmd opened this issue Jan 15, 2025 · 2 comments
Open

build and push docker image #19

dmd opened this issue Jan 15, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@dmd
Copy link
Contributor

dmd commented Jan 15, 2025

Could you please have GHA build and push a docker image?

Here is an example .github/workflows/docker-push.yml for you. You will need to set up your username and token in https://github.com/harvard-nrg/scanbuddy/settings/secrets/actions .

name: Upload latest to DockerHub

on:
  workflow_dispatch:
  push:
    branches: [ main, ]

jobs:
  docker:

    runs-on: ubuntu-latest
    
    steps:
      - name: Login to DuckerHub
        uses: docker/login-action@v3
        with:
          username: ${{ secrets.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 Docker images
        uses: docker/build-push-action@v6
        with:
          platforms: linux/amd64,linux/arm64
          push: true
          tags: ${{ secrets.DOCKERHUB_USERNAME }}/scanbuddy:latest
@dmd
Copy link
Contributor Author

dmd commented Jan 15, 2025

(Of course better would be to set it up with version numbers. But this would be a start!)

@tokeefe tokeefe added the enhancement New feature or request label Jan 27, 2025
@tokeefe
Copy link
Contributor

tokeefe commented Jan 28, 2025

This failed with a segfault during the AFNI compilation step. Possibly due to running under QEMU, but not sure yet. Current state of this work is under the debian branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants