Skip to content

Commit

Permalink
Merge pull request #2 from ivan-zynesis/docker-workflow
Browse files Browse the repository at this point in the history
Docker Workflow
  • Loading branch information
github-learning-lab[bot] authored Jan 18, 2021
2 parents a5bf545 + 1ae24d1 commit 673a37e
Showing 1 changed file with 24 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# This file wont do us much good in this location, make sure you change the path as directed to continue!

name: Node CI
# name: Node CI
name: Docker CD

on:
push:
Expand Down Expand Up @@ -44,3 +45,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: ivan-zynesis/github-actions-for-packages/tic-tac-toe
tag_with_sha: true

0 comments on commit 673a37e

Please sign in to comment.