Skip to content

Merge pull request #25 from compscidr/jason/update-versions #43

Merge pull request #25 from compscidr/jason/update-versions

Merge pull request #25 from compscidr/jason/update-versions #43

Workflow file for this run

name: Deploy containers
on:
push:
branches:
- main
paths:
- 'Dockerfile'
- '.github/workflows/deploy.yml'
jobs:
build-nvidia:
strategy:
matrix:
os:
- "ubuntu20.04"
- "ubuntu22.04"
cuda:
- "11.7.1"
- "12.2.0"
lolminer:
- "1.52a"
- "1.53"
- "1.54"
- "1.56"
- "1.57"
- "1.58"
- "1.60"
- "1.61"
- "1.62"
- "1.63"
- "1.64"
- "1.65"
- "1.66"
- "1.67"
- "1.69"
- "1.70"
- "1.71"
- "1.72"
- "1.73"
- "1.74"
- "1.75"
- "1.76"
- "1.78"
- "1.79"
- "1.80"
- "1.81"
- "1.82"
runs-on: ubuntu-22.04
name: Deploy Nvidia Containers
steps:
- uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: build and tag nvidia image
run: docker build -f Dockerfile --target nvidia --build-arg LOLMINER_VERSION=${{ matrix.lolminer }} --build-arg OS_VERSION=${{ matrix.os }} --build-arg CUDA_VERSION=${{ matrix.cuda }} -t compscidr/lolminer-docker:${{ matrix.os }}-cuda-${{ matrix.cuda }}-${{ matrix.lolminer }} .
- name: tag and push
run: |
docker push compscidr/lolminer-docker:${{ matrix.os }}-cuda-${{ matrix.cuda }}-${{ matrix.lolminer }}
docker tag compscidr/lolminer-docker:${{ matrix.os }}-cuda-${{ matrix.cuda }}-${{ matrix.lolminer }} compscidr/lolminer-docker:latest
docker push compscidr/lolminer-docker:latest
- name: Logout of Docker Hub
run: docker logout
build-amd:
strategy:
matrix:
os:
- "ubuntu20.04"
- "ubuntu22.04"
amd_driver:
- "21.30"
- "22.20"
lolminer:
- "1.52a"
- "1.53"
- "1.54"
- "1.56"
- "1.57"
- "1.58"
- "1.60"
- "1.61"
- "1.62"
- "1.63"
- "1.64"
- "1.65"
- "1.66"
- "1.67"
- "1.69"
- "1.70"
- "1.71"
- "1.72"
- "1.73"
- "1.74"
- "1.75"
- "1.76"
- "1.78"
- "1.79"
- "1.80"
- "1.81"
- "1.82"
exclude:
- os: "ubuntu22.04"
- amd_driver: "21.30"
runs-on: ubuntu-22.04
name: Deploy AMD Containers
steps:
- uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: build and tag amd image
run: docker build -f Dockerfile --target amd --build-arg LOLMINER_VERSION=${{ matrix.lolminer }} --build-arg OS_VERSION=${{ matrix.os }} --build-arg AMD_DRIVER=${{ matrix.amd_driver }} -t compscidr/lolminer-docker:${{ matrix.os }}-amd-${{ matrix.amd_driver }}-${{ matrix.lolminer }} .
- name: tag and push
run: |
docker push compscidr/lolminer-docker:${{ matrix.os }}-amd-${{ matrix.amd_driver }}-${{ matrix.lolminer }}
docker tag compscidr/lolminer-docker:${{ matrix.os }}-amd-${{ matrix.amd_driver }}-${{ matrix.lolminer }} compscidr/lolminer-docker:latest
docker push compscidr/lolminer-docker:latest
- name: Logout of Docker Hub
run: docker logout