From df35ce895e277c9ba46900057bee14e2aec207c1 Mon Sep 17 00:00:00 2001 From: Devendra61 <52621589+Devendra61@users.noreply.github.com> Date: Wed, 1 Nov 2023 01:31:36 +0530 Subject: [PATCH 1/6] Create main.yml --- .github/workflows/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..15a61d6 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,18 @@ +name: GitHub Actions Demo +run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 +on: [push] +jobs: + Explore-GitHub-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v4 + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ github.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." From 2a611479b6597cb0cfc1773b9b25eced676182c0 Mon Sep 17 00:00:00 2001 From: Devendra61 <52621589+Devendra61@users.noreply.github.com> Date: Wed, 1 Nov 2023 01:36:06 +0530 Subject: [PATCH 2/6] Update main.yml --- .github/workflows/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 15a61d6..77bc122 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,6 +10,11 @@ jobs: - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - name: Check out repository code uses: actions/checkout@v4 + with: + push: true + file: ./Dockerfile + tag: | + tensorflow_image/gpu - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - run: echo "🖥️ The workflow is now ready to test your code on the runner." - name: List files in the repository From df13e52e80d14576a25705cdd4351c523588d4db Mon Sep 17 00:00:00 2001 From: Devendra61 <52621589+Devendra61@users.noreply.github.com> Date: Wed, 1 Nov 2023 01:39:33 +0530 Subject: [PATCH 3/6] Update Dockerfile --- Dockerfile | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 607820f..c916eb5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,7 @@ -FROM tensorflow/tensorflow:1.13.1-gpu-py3-jupyter - -MAINTAINER sunnywalden@gmail.com - +FROM tensorflow/tensorflow:2.6.2-gpu-py3-jupyter USER root -ENV PYTHON_VERSION 3.7.5 +ENV PYTHON_VERSION 3.8.2 RUN apt-get -y update && \ apt-get -y upgrade && \ @@ -35,10 +32,10 @@ RUN apt-get -y update && \ make && make install && \ sed -i 's/\/usr\/bin\/python/\/usr\/bin\/python2.7/g' /usr/bin/lsb_release && \ rm -rf /usr/bin/python3 && rm -rf /usr/bin/python && rm -rf /usr/bin/pip3 && rm -rf /usr/bin/pip && \ - ln -s /usr/local/python3/bin/python3.7 /usr/bin/python3 && \ - ln -s /usr/local/python3/bin/python3.7 /usr/bin/python && \ - ln -s /usr/local/python3/bin/pip3.7 /usr/bin/pip3 && \ - ln -s /usr/local/python3/bin/pip3.7 /usr/bin/pip && \ + ln -s /usr/local/python3/bin/python3.8 /usr/bin/python3 && \ + ln -s /usr/local/python3/bin/python3.8 /usr/bin/python && \ + ln -s /usr/local/python3/bin/pip3.8 /usr/bin/pip3 && \ + ln -s /usr/local/python3/bin/pip3.8 /usr/bin/pip && \ export PATH=/usr/local/python3/bin:$PATH && \ pip3 install --upgrade pip && \ cd .. && rm -rf Python-$PYTHON_VERSION* && \ From 7a34bae177d57401bbd003acdb02cb75f835d55b Mon Sep 17 00:00:00 2001 From: Devendra61 <52621589+Devendra61@users.noreply.github.com> Date: Wed, 1 Nov 2023 01:42:35 +0530 Subject: [PATCH 4/6] Update main.yml --- .github/workflows/main.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 77bc122..c297592 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,9 @@ -name: GitHub Actions Demo -run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 +name: GitHub-Actions-Demo + on: [push] + push: + branch: + - main jobs: Explore-GitHub-Actions: runs-on: ubuntu-latest @@ -14,7 +17,7 @@ jobs: push: true file: ./Dockerfile tag: | - tensorflow_image/gpu + "tensorflow_image/gpu" - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - run: echo "🖥️ The workflow is now ready to test your code on the runner." - name: List files in the repository From 007241fc537c588d7f5955916292b64d23f125c7 Mon Sep 17 00:00:00 2001 From: Devendra61 <52621589+Devendra61@users.noreply.github.com> Date: Wed, 1 Nov 2023 01:43:08 +0530 Subject: [PATCH 5/6] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c297592..bf71d74 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,6 @@ name: GitHub-Actions-Demo -on: [push] +on: push: branch: - main From 61519d5a749fbe49e40ecb4f9159172df29d12b7 Mon Sep 17 00:00:00 2001 From: Devendra61 <52621589+Devendra61@users.noreply.github.com> Date: Wed, 1 Nov 2023 01:45:47 +0530 Subject: [PATCH 6/6] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bf71d74..94ca18b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,7 +2,7 @@ name: GitHub-Actions-Demo on: push: - branch: + branches: - main jobs: Explore-GitHub-Actions: