Skip to content

Build and Publish image to Docker Hub #5

Build and Publish image to Docker Hub

Build and Publish image to Docker Hub #5

Workflow file for this run

name: Build and Publish image to Docker Hub
on:
[workflow_dispatch]
jobs:
publish_images:
runs-on: ubuntu-latest
steps:
- uses: Jimver/cuda-toolkit@v0.2.16
id: cuda-toolkit
with:
cuda: '12.5.0'
- name: checkout
uses: actions/checkout@v3
- name: build image
run: |
docker build . -t aghaeifar/spinwalk:latest
- name: push image to docker hub
run: |
docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}
docker push aghaeifar/spinwalk:latest