From 2ea5ce63f51b55b19718f28f3c3d1453ffb71fa7 Mon Sep 17 00:00:00 2001 From: DatariHart <118616414+DatariHart@users.noreply.github.com> Date: Mon, 6 Feb 2023 19:39:41 -0500 Subject: [PATCH 1/8] Create docker-image.yml --- .github/workflows/docker-image.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 00000000..7b784231 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,27 @@ +name: Docker Image CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: docker login + env: + DOCKER_USER: ${{secrets.DOCKER_USER}} + DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}} + run: + docker login -u $DOCKER_USER -p $DOCKER_PASSWORD + - name: Build the Docker image + run: docker build . --file Dockerfile --tag node_js $(date +%s) + + - name: Docker Push + run: docker push ${{secrets.DOCKER_USER}}/mysteek/mysteek-web From 142ba6ad6e381bb3887778653238771ba9c1a626 Mon Sep 17 00:00:00 2001 From: DatariHart <118616414+DatariHart@users.noreply.github.com> Date: Mon, 6 Feb 2023 19:46:14 -0500 Subject: [PATCH 2/8] Update docker-image.yml --- .github/workflows/docker-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 7b784231..6ae35505 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -21,7 +21,7 @@ jobs: run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD - name: Build the Docker image - run: docker build . --file Dockerfile --tag node_js $(date +%s) + run: docker build . --file Dockerfile --tag mysteek/node_js $(date +%s) - name: Docker Push - run: docker push ${{secrets.DOCKER_USER}}/mysteek/mysteek-web + run: docker push ${{secrets.DOCKER_USER}}mysteek/node_js:tagname From 6af01593906d49497a61eafc2d163dbdbbcd8594 Mon Sep 17 00:00:00 2001 From: DatariHart <118616414+DatariHart@users.noreply.github.com> Date: Mon, 6 Feb 2023 19:51:23 -0500 Subject: [PATCH 3/8] Update docker-image.yml --- .github/workflows/docker-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 6ae35505..114a6151 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -21,7 +21,7 @@ jobs: run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD - name: Build the Docker image - run: docker build . --file Dockerfile --tag mysteek/node_js $(date +%s) + run: docker build . --f Dockerfile --t nodejs-app:$(date +%s) - name: Docker Push - run: docker push ${{secrets.DOCKER_USER}}mysteek/node_js:tagname + run: docker push ${{secrets.DOCKER_USER}}/mysteek/node_js:tagname From 6862e5e573264a6a0cadccac390bf67cb4dcc677 Mon Sep 17 00:00:00 2001 From: DatariHart <118616414+DatariHart@users.noreply.github.com> Date: Mon, 6 Feb 2023 19:57:53 -0500 Subject: [PATCH 4/8] Update docker-image.yml --- .github/workflows/docker-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 114a6151..ab5e7229 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -21,7 +21,7 @@ jobs: run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD - name: Build the Docker image - run: docker build . --f Dockerfile --t nodejs-app:$(date +%s) + run: docker build . -f Dockerfile -t nodejs-app:2 - name: Docker Push - run: docker push ${{secrets.DOCKER_USER}}/mysteek/node_js:tagname + run: docker push ${{secrets.DOCKER_USER}}/mysteek/node_js:2 From 3fdf1f429b544c5fb3abad99ce2ab71dcc6e1f66 Mon Sep 17 00:00:00 2001 From: DatariHart <118616414+DatariHart@users.noreply.github.com> Date: Mon, 6 Feb 2023 21:59:18 -0500 Subject: [PATCH 5/8] Update docker-image.yml --- .github/workflows/docker-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index ab5e7229..6785ceda 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -21,7 +21,7 @@ jobs: run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD - name: Build the Docker image - run: docker build . -f Dockerfile -t nodejs-app:2 + run: docker build . -f Dockerfile -t node:10 - name: Docker Push - run: docker push ${{secrets.DOCKER_USER}}/mysteek/node_js:2 + run: docker push ${{secrets.DOCKER_USER}}/mysteek/node_js:1 From f13943ff279b2aa67b411d97d677c00209f0d4ca Mon Sep 17 00:00:00 2001 From: DatariHart <118616414+DatariHart@users.noreply.github.com> Date: Mon, 6 Feb 2023 22:09:27 -0500 Subject: [PATCH 6/8] Update docker-image.yml --- .github/workflows/docker-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 6785ceda..29b21659 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -21,7 +21,7 @@ jobs: run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD - name: Build the Docker image - run: docker build . -f Dockerfile -t node:10 + run: docker build . -f Dockerfile -t nodejs-application - name: Docker Push - run: docker push ${{secrets.DOCKER_USER}}/mysteek/node_js:1 + run: docker push ${{secrets.DOCKER_USER}}/mysteek/nodejs-application From c03ba24398f0eae2fd8eccb7c99bc4eaf9cea46a Mon Sep 17 00:00:00 2001 From: DatariHart <118616414+DatariHart@users.noreply.github.com> Date: Mon, 6 Feb 2023 22:24:16 -0500 Subject: [PATCH 7/8] Update docker-image.yml --- .github/workflows/docker-image.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 29b21659..1880f501 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -21,7 +21,10 @@ jobs: run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD - name: Build the Docker image - run: docker build . -f Dockerfile -t nodejs-application + run: docker build . -f Dockerfile -t nodejs:1 + + - name: Docker tag + run: docker tag nodejs:1 mysteek/nodejs-application:1 - name: Docker Push - run: docker push ${{secrets.DOCKER_USER}}/mysteek/nodejs-application + run: docker push ${{secrets.DOCKER_USER}} mysteek/nodejs-application:1 From 5689f5862b6fb8ded2e7b2980eacfd5ce912051c Mon Sep 17 00:00:00 2001 From: DatariHart <118616414+DatariHart@users.noreply.github.com> Date: Mon, 6 Feb 2023 22:26:36 -0500 Subject: [PATCH 8/8] Update docker-image.yml --- .github/workflows/docker-image.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 1880f501..f0669632 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -27,4 +27,4 @@ jobs: run: docker tag nodejs:1 mysteek/nodejs-application:1 - name: Docker Push - run: docker push ${{secrets.DOCKER_USER}} mysteek/nodejs-application:1 + run: docker push mysteek/nodejs-application:1