Skip to content

Commit

Permalink
Merge pull request #472 from TANguyen1893/add-kustomization
Browse files Browse the repository at this point in the history
fix: export bumped version as env variable and disable a few semantic release bot features
  • Loading branch information
TANguyen1893 authored Dec 10, 2020
2 parents 8b620a0 + d208397 commit f5d2070
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/treetracker-admin-server-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ jobs:
file: ./server/Dockerfile
push: true
tags: greenstand/treetracker-admin-api:${{ steps.package-version.outputs.current-version }}
- id: export_bumped_version
run: |
export BUMPED_VERSION="${{ steps.package-version.outputs.current-version }}"
echo "::set-output name=bumped_version::${BUMPED_VERSION}"
outputs:
bumped_version: ${{ steps.export_bumped_version.outputs.bumped_version }}
deploy:
name: Deploy latest to development environment
runs-on: ubuntu-latest
Expand All @@ -131,17 +137,12 @@ jobs:
github.repository == 'Greenstand/treetracker-admin'
steps:
- uses: actions/checkout@v2
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
with:
path: ./
- name: Install kustomize
run: curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
- name: Copy kustomize.yml
run: cp server/deployment/kustomize/kustomization.yaml server/deployment/kustomization.yaml
- name: Run kustomize
run: (cd server/deployment && ../../kustomize edit set image greenstand/treetracker-admin-api:${{ steps.package-version.outputs.current-version }} )
run: (cd server/deployment && ../../kustomize edit set image greenstand/treetracker-admin-api:${{ needs.release.outputs.bumped_version }} )
- name: Install doctl for kubernetes
uses: digitalocean/action-doctl@v2
with:
Expand Down
10 changes: 5 additions & 5 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
["@semantic-release/git", {
"assets": ["docs", "package.json", "CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version} [skip ci]",
"successComment": "false",
"failComment": "false",
"failTitle": "false",
"labels": "false",
"releasedLabels": "false"
"successComment": false,
"failComment": false,
"failTitle": false,
"labels": false,
"releasedLabels": false
}],
"@semantic-release/github"
]
Expand Down

0 comments on commit f5d2070

Please sign in to comment.