Skip to content

Commit

Permalink
Merge pull request #82 from NCU-Plus/chore/cd
Browse files Browse the repository at this point in the history
Replace ci.yml with cd.yml
  • Loading branch information
ppodds committed Sep 16, 2022
2 parents 57d206f + 93bf3d0 commit 87e6867
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/ci.yml → .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
name: CI
name: CD

on:
push:
branches: [ master ]
release:
types: [released]

jobs:
docker:
runs-on: ubuntu-latest
name: "Build Docker image and push to Docker Hub"
steps:
- name: Get version string
id: get-version
run: |
tag=${{github.event.release.tag_name}}
echo "::set-output name=version::${tag:1}"
- uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -21,4 +26,4 @@ jobs:
uses: docker/build-push-action@v3
with:
push: true
tags: ppodds/ncuplus-frontend:latest
tags: ppodds/ncuplus-frontend:latest,ppodds/ncuplus-frontend:${{ steps.get-version.outputs.version }}
6 changes: 4 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@
"prettier --write",
"eslint --fix"
]
}
},
"version": "0.0.1"
}

0 comments on commit 87e6867

Please sign in to comment.