Skip to content

Commit

Permalink
Use secrets directly in command
Browse files Browse the repository at this point in the history
  • Loading branch information
violine1101 authored Sep 3, 2024
1 parent 0e91e7a commit eea8e55
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,31 +23,36 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
- uses: eskatos/[email protected]
- name: Build with Gradle
uses: eskatos/[email protected]
with:
arguments: clean build installDist
wrapper-cache-enabled: true
dependencies-cache-enabled: true
configuration-cache-enabled: true
- name: Azure CLI Login
- name: Azure Login
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Open Bastion tunnel and deploy
- name: Open Bastion tunnel
uses: azure/cli@v2
with:
azcliversion: latest
inlineScript: |
az config set extension.dynamic_install_allow_preview=true
echo Opening tunnel
az network bastion tunnel --name $BASTION_NAME --resource-group $RESOURCE_GROUP --target-resource-id $RESOURCE_ID --resource-port 22 --port 50022 --debug &
az network bastion tunnel --name ${{ secrets.BASTION_NAME }} --resource-group ${{ secrets.RESOURCE_GROUP }} --target-resource-id ${{ secrets.RESOURCE_ID }} --resource-port 22 --port 50022 --debug &
echo Wait for bastion tunnel to open
az network bastion wait --created --name $BASTION_NAME --resource-group $RESOURCE_GROUP --debug
az network bastion wait --created --name ${{ secrets.BASTION_NAME }} --resource-group ${{ secrets.RESOURCE_GROUP }} --debug
- name: Deploy
uses: azure/cli@v2
with:
azcliversion: latest
inlineScript: |
ARGS="-avh --delete"
USERNAME=risa
SERVER_DESTINATION=/home/risa/r-isa
Expand Down

0 comments on commit eea8e55

Please sign in to comment.