Skip to content

Update docker-image.yml #5

Update docker-image.yml

Update docker-image.yml #5

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-gpu:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v4
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: docker/Dockerfile.gpu
# push: true
# tags: user/app:latest
# - name: Build the GPU Docker image
# run: docker build . --file docker/Dockerfile.gpu --tag fishsense-lite:gpu-$(date +%s) --tag fishsense-lite:gpu-latest
build-cpu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the CPU Docker image
run: docker build . --file docker/Dockerfile.cpu --tag fishsense-lite:cpu-$(date +%s) --tag fishsense-lite:cpu-latest