From 7628268afd8a41c41e13bbcdffa9d51bf6e96bf0 Mon Sep 17 00:00:00 2001 From: SUNGHYUN KIM Date: Thu, 31 Dec 2020 03:13:23 +0900 Subject: [PATCH] Update and rename ci-workflow.yml to cd-workflow.yml --- .../{ci-workflow.yml => cd-workflow.yml} | 26 ++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) rename .github/workflows/{ci-workflow.yml => cd-workflow.yml} (60%) diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/cd-workflow.yml similarity index 60% rename from .github/workflows/ci-workflow.yml rename to .github/workflows/cd-workflow.yml index e862de5..02913e4 100644 --- a/.github/workflows/ci-workflow.yml +++ b/.github/workflows/cd-workflow.yml @@ -1,6 +1,4 @@ -# This file wont do us much good in this location, make sure you change the path as directed to continue! - -name: Node CI +name: Docker CD on: push: @@ -44,3 +42,25 @@ jobs: npm test env: CI: true + + Build-and-Push-Docker-Image: + runs-on: ubuntu-latest + needs: test + name: Docker Build, Tag, Push + + steps: + - name: Checkout + uses: actions/checkout@v1 + - name: Download built artifact + uses: actions/download-artifact@main + with: + name: webpack artifacts + path: public + - name: Build container image + uses: docker/build-push-action@v1 + with: + username: ${{github.actor}} + password: ${{secrets.GITHUB_TOKEN}} + registry: docker.pkg.github.com + repository: tooget/github-actions-for-packages/tic-tac-toe + tag_with_sha: true