Skip to content

Commit

Permalink
git setup script updated
Browse files Browse the repository at this point in the history
  • Loading branch information
mosbuma committed Dec 14, 2023
1 parent 56840bb commit 22d1d78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions github/setup-actions.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
ENVIRONMENT=production
REPOSITORY=Stichting-CROW/fietsberaad-veiligstallen-app
REPOSITORY=mosbuma/fietsberaad-veiligstallen-app
# gh api --method PUT -H "Accept: application/vnd.github+json" repos/$REPOSITORY/environments/$ENVIRONMENT

#publish or update the workflow variables
gh variable set -f ./github/variables.env

#publish or update secret azure publish profile (set separately because it is a multiline value)
gh secret set -a actions AZUREAPPSERVICE_PUBLISHPROFILE_VEILIGSTALLEN < ./github/vstfb-eu-acc-app01.PublishSettings
gh variable set AZUREAPPSERVICE_PUBLISHPROFILE_VEILIGSTALLEN < ./github/vstfb-eu-acc-app01.PublishSettings

#publish or update remainder of the secrets are set in a single file
# cat ./github/secrets.env
# gh secret set -a actions -f ./github/secrets.env
# gh secret set -a actions AZUREAPPSERVICE_PUBLISHPROFILE_VEILIGSTALLEN -f ./github/secrets.env

#enable the ci/cd action
gh workflow enable azure-webapps-node.yml
Loading

0 comments on commit 22d1d78

Please sign in to comment.