Skip to content

Commit

Permalink
Adding docker hub deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
llaniewski committed Sep 7, 2023
1 parent ca64ea1 commit 1730b81
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 9 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/cpu_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,30 @@ jobs:
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to the Container registry
- name: Log-in into GHCR
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Log-in into Docker HUB
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build ubuntu-22.04 small cuda 11.7
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64
push: true
tags: ghcr.io/cfd-go/tclb:ubuntu-22.04-cuda-11.7
tags: cfd-go/tclb:ubuntu-22.04-cuda-11.7 ghcr.io/cfd-go/tclb:ubuntu-22.04-cuda-11.7
file: gen/Dockerfile.ubuntu-22.04-cuda-11.7
- name: Build ubuntu-22.04 big cpu
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64
push: true
tags: cfd-go/tclb:ubuntu-22.04-big ghcr.io/cfd-go/tclb:ubuntu-22.04-big
file: gen/Dockerfile.ubuntu-22.04-big
17 changes: 11 additions & 6 deletions generate.Rt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?R
rows = function(x) lapply(seq_len(nrow(x)),function(i) lapply(x,"[[",i))

reg_repo = "ghcr.io/CFD-GO/TCLB"
reg_repo = c("cfd-go/tclb", "ghcr.io/cfd-go/tclb")

tab = rbind(
expand.grid(arch=c("cuda"), version=c("11.7","12.0")),
Expand Down Expand Up @@ -83,20 +83,25 @@ jobs:
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to the Container registry
- name: Log-in into GHCR
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}<?R
for (d in rows(tab)[1]) { ?>
password: ${{ secrets.GITHUB_TOKEN }}
- name: Log-in into Docker HUB
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}<?R
for (d in rows(tab)[c(1,10)]) { ?>
- name: Build <?%s d$name ?>
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64
push: true
tags: <?%s tolower(reg_repo) ?>:<?%s d$tag ?>
tags: <?%s paste(reg_repo,d$tag,sep=":",collapse=" ") ?>
file: <?%s d$dockerfile ?> <?R
} ?>
<?R
Expand Down

0 comments on commit 1730b81

Please sign in to comment.