diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index f970805..82ad864 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -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 @@ -174,4 +174,4 @@ jobs: # tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pytorch-notebook:yolo # # - name: Image digest -# run: echo ${{ steps.docker_build.outputs.digest }} \ No newline at end of file +# run: echo ${{ steps.docker_build.outputs.digest }}