From dc677db718fbd9390e528b324d4b44cb8fee7194 Mon Sep 17 00:00:00 2001 From: cryodream Date: Fri, 20 Nov 2020 12:04:08 -0500 Subject: [PATCH] added Build-and-Push-Docker-Image job --- .../{ci-workflow.yml => cd-workflow.yml} | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) rename .github/workflows/{ci-workflow.yml => cd-workflow.yml} (62%) diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/cd-workflow.yml similarity index 62% rename from .github/workflows/ci-workflow.yml rename to .github/workflows/cd-workflow.yml index e862de5..f97ad1e 100644 --- a/.github/workflows/ci-workflow.yml +++ b/.github/workflows/cd-workflow.yml @@ -1,6 +1,6 @@ # 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 +44,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@master + 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: cryodream/github-actions-for-packages/tic-tac-toe + tag_with_sha: true