-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
22 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,43 +22,37 @@ jobs: | |
|
||
- name: 🪚 Build app | ||
run: | | ||
cd client | ||
npm ci | ||
npm run build -- --mode staging | ||
- name: 🏷️ Get tag | ||
id: tag | ||
run: echo "tag=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT | ||
|
||
- name: 🔑 Login Docker | ||
run: docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: 🐳 Build Docker image | ||
run: | | ||
cd client | ||
IMAGE_ID=ghcr.io/${{ github.repository }} | ||
IMAGE_ID=ghcr.io/dataesr/ticket-office | ||
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') | ||
docker build -f Dockerfile -t $IMAGE_ID:${{ steps.tag.outputs.tag }} . | ||
docker build -t $IMAGE_ID:staging . | ||
- name: 📦 Push Docker image | ||
run: | | ||
IMAGE_ID=ghcr.io/${{ github.repository }} | ||
IMAGE_ID=ghcr.io/dataesr/ticket-office | ||
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') | ||
docker push --all-tags $IMAGE_ID | ||
deploy: | ||
name: 💭 Update staging deployment | ||
runs-on: ubuntu-latest | ||
needs: publish-ghcr | ||
steps: | ||
- name: Deploy to Cluster | ||
id: kubectl-deploy | ||
uses: dataesr/[email protected] | ||
env: | ||
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG_DOAD_STAGING }} | ||
with: | ||
namespace: ${{ env.DEPLOYMENT_NAMESPACE }} | ||
restart: ${{ env.DEPLOYMENT }} | ||
# deploy: | ||
# name: 💭 Update staging deployment | ||
# runs-on: ubuntu-latest | ||
# needs: publish-ghcr | ||
# steps: | ||
# - name: Deploy to Cluster | ||
# id: kubectl-deploy | ||
# uses: dataesr/[email protected] | ||
# env: | ||
# KUBE_CONFIG: ${{ secrets.KUBE_CONFIG_DOAD_STAGING }} | ||
# with: | ||
# namespace: ${{ env.DEPLOYMENT_NAMESPACE }} | ||
# restart: ${{ env.DEPLOYMENT }} | ||
|
||
notify: | ||
name: 📢 Notify in mattermost channel | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "scanR-contact-v2", | ||
"name": "ticket-office", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
|