Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
qixing-ai committed Jun 7, 2024
1 parent 97fbfb9 commit 35e499d
Showing 1 changed file with 52 additions and 52 deletions.
104 changes: 52 additions & 52 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,62 +90,62 @@ jobs:
# - name: Image digest
# run: echo ${{ steps.docker_build.outputs.digest }}

# build12:
# runs-on: ubuntu-latest
# steps:
#
# - name: Check Out Repo
# uses: actions/checkout@v3
#
# - name: Login to Docker Hub
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKER_HUB_USERNAME }}
# password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
#
# - name: Set up Docker Buildx
# id: buildx
# uses: docker/setup-buildx-action@v2
#
# - name: Build and push
# id: docker_build
# uses: docker/build-push-action@v4
# with:
# context: ./
# file: ./Dockerfile12
# push: true
# tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pytorch-notebook:12.0
#
# - name: Image digest
# run: echo ${{ steps.docker_build.outputs.digest }}
build121:
runs-on: ubuntu-latest
steps:
build12:
runs-on: ubuntu-latest
steps:

- name: Check Out Repo
uses: actions/checkout@v3

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2

- name: Build and push
id: docker_build
uses: docker/build-push-action@v4
with:
context: ./
file: ./Dockerfile12
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pytorch-notebook:12.0

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
# build121:
# runs-on: ubuntu-latest
# steps:

- name: Check Out Repo
uses: actions/checkout@v3
# - name: Check Out Repo
# uses: actions/checkout@v3

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
# - name: Login to Docker Hub
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKER_HUB_USERNAME }}
# password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
# - name: Set up Docker Buildx
# id: buildx
# uses: docker/setup-buildx-action@v2

- name: Build and push
id: docker_build
uses: docker/build-push-action@v4
with:
context: ./
file: ./Dockerfile12.1
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pytorch-notebook:12.1
# - name: Build and push
# id: docker_build
# uses: docker/build-push-action@v4
# with:
# context: ./
# file: ./Dockerfile12.1
# push: true
# tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pytorch-notebook:12.1

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
# - name: Image digest
# run: echo ${{ steps.docker_build.outputs.digest }}

# buildyolo:
# runs-on: ubuntu-latest
Expand Down Expand Up @@ -174,4 +174,4 @@ jobs:
# tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pytorch-notebook:yolo
#
# - name: Image digest
# run: echo ${{ steps.docker_build.outputs.digest }}
# run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit 35e499d

Please sign in to comment.