Git Product home page Git Product logo

deploy-to-azure's People

Contributors

51lver avatar a-a-ron avatar bburrier avatar dependabot[bot] avatar gitgithan avatar gracepark avatar hectorsector avatar heiskr avatar iemejia avatar jamesmgreene avatar jlahtinen avatar markpatterson27 avatar morganbennett10 avatar olegmlsn avatar pabloperezmoya avatar rffontenelle avatar shearpaladin avatar sinsukehlab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

deploy-to-azure's Issues

Update discussions link

We now have a designated discussion area for each course! ๐ŸŽ‰

This means all of our course links need to be updated to point to the correct discussion page.

There are two places in each course where discussions are referenced

  • README.md
  • .github > steps > X-finish.md

These two files will have a link to https://github.com/orgs/skills/discussions that will need to be replaced with the link for the course specific discussion. You can find those links here, in the left menu section. Copy the link to the discussion category for this course and replace it in those two files.

Be sure to link your PR to this issue for review.

[Bug] 2-setup-azure-environment.yml Error

Summary

The environment should use 'with' not 'env' from line 84 to line 100. I kept facing this issue wondering why environment variables weren't being set

How to reproduce

Prereq: On Mac

  1. Following all Instructions beginning this Lab
  2. Upon Editing the deployment file with your username Github Actions will run and give you this Error

Screenshots

Screenshot 2023-06-04 at 1 05 17 PM

SOLUTION

I changed the lines 84 - 100 for 'env' -> 'with' in 2-setup-azure-environment.yml and it resolved the issue.

Screenshot 2023-06-04 at 1 32 44 PM

[Bug] Warnings of deprecation and vulnerabilities on step 5 - Deploy

Summary

In Step 5: Deploy to a production environment based on labels, when running the deploy-prod.yml workflow, the npm install and build webpack step from build job emits several warnings of deprecation and vulnerabilities for the dependencies of the webpack used in the exercise.

How to reproduce

  1. Get to the Step 5: Deploy to a production environment based on labels
  2. Follow instructions Activities 1 and then Activities 2
  3. Once the PR is merged into main, deploy-prod.yml workflow will be triggered
  4. Browse the logs for this workflow run, check build job, npm install and build webpack step
  5. See warnings in the log
Click here to show the text if the warning shown in the image below
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated [email protected]: This version of 'buffer' is out-of-date. You must update to v4.9.2 or newer
npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)

added 1680 packages, and audited 1681 packages in 13s

47 packages are looking for funding
run npm fund for details

12 vulnerabilities (1 low, 3 moderate, 8 high)

To address issues that do not require attention, run:
npm audit fix

To address all issues (including breaking changes), run:
npm audit fix --force

Run npm audit for details.

image

Additional context

Reference of the latest commit from this repository in which I did my exercise: 02e588b

[Bug] AZURE_CREDENTIALS are in instructions but never created

Summary

A change we recently accepted removed the creation of a secret called AZURE_CREDENTIALS. That secret is still utilized in one of the workflows we ask the learner to create:

- name: Azure login
uses: azure/login@v2
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

How to reproduce

  1. Take the course
  2. At step 3, you'll see the workflow referenced. It will immediately fail on the login action.
  3. The course will continue to move forward eventually, but no actual Azure workflow ran.

[Bug] Inaccurate headings and readme saying Deploy to a production environment based on labels

In 5-deploy-to-prod-environment.md it says Step 5: Deploy to a production environment based on labels.
In X-finish.md it says Deploy to a production environment based on labels.

However the exercises never deployed to production based on labels. It was based on push to main in
.github/workflows/deploy-prod.yml

name: Deploy to production

on:
  push:
    branches:
      - main

Descriptions may have been outdated.

[Bug] Inaccurate comments in `4-deploy-to-staging-environment.yml` make search for terms confusing

# This will run after the "Configure Azure environment" workflow
# completes on the azure-configuration branch
# Reference: https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows
on:
  workflow_dispatch:
  workflow_run:
    workflows: ["Deploy to staging"]
    types: [completed]
    branches: [staging-test]

Should be
This will run after the "Deploy to staging" workflow and completes on the staging-test branch

[Bug]Test

Summary

A clear and concise description of what the bug is, and what you expected to happen.

How to reproduce

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '...'
  4. See error

Please include screenshots.

Additional context

Add any other context about the problem here.

[Bug] On repo clone, cannot run ./.github/script/initialize-repository.sh: Permission denied

Summary

A bash script in the /scripts directory does not have permission to be run from the workflow on creation of the repo

How to reproduce

  1. Go to https://github.com/skills/deploy-to-azure
  2. Click on 'Use this template' > 'clone a new repository'
  3. Create repository
  4. Click on 'Actions' and see failing workflow
Run ./.github/script/initialize-repository.sh --dry-run=false
/home/runner/work/_temp/16d9e30a-ec25-477a-bff6-b69b72279dcc.sh: line 1: ./.github/script/initialize-repository.sh: Permission denied

Screenshot 2024-01-11 at 16 45 39

https://github.com/larmitage-bjss/deploy-to-azure/actions/runs/7491800267/job/20393860444

[Bug] Error while executing the spinup-destroy.yml workflow

Summary

Error while executing the spinup-destroy.yml workflow

How to reproduce

Happens consistently.

Run az appservice plan create --resource-group cd-with-actions --name actions-ttt-deployment --is-linux --sku F1 --subscription ***
WARNING: Resource provider 'Microsoft.Web' used by this operation is not registered. We are registering for you.
WARNING: Registration succeeded.
ERROR: This region has quota of 0 instances for your subscription. Try selecting different region or SKU.
Error: Process completed with exit code 1.

[Bug] dead link in call for feedback link at the end of the course

Describe the bug
In the detail panel Finish of the readme.md of the course is a call for feedback:

What's next?
We'd love to hear what you thought of this course.
The 'skills/continuous-delivery-azure' repository doesn't contain the 'TBD-feedback-link' path in 'main'.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://github.com/skills/continuous-delivery-azure'
  2. In the readme on this page, scroll down to 'Finish' and click it
  3. Scroll down to 'What's next'
  4. Click the first link: 'We'd love to hear what you thought of this course.'
  5. See error

Expected behavior
The link should lead to the github skills evaluation page or https://github.com/skills/.github/discussions

Device information

[Bug] azure-configuration branch is missing

Describe the bug
Workflow "Check step 2, Set up the Azure environment" fails at the job. Create azure-configuration pull request with a error:

pull request create failed: GraphQL: Head sha can't be blank, Base sha can't be blank, No commits between main and azure-configuration, Head ref must be a branch (createPullRequest)
Error: Process completed with exit code 1.

To Reproduce
Steps to reproduce the behavior:
Follow Readme.md guide at the step 2.16 commit checks will fail and you will not be able to proceed the course.

Additional context
at this step workflow should create a PR from azure-configuration branch which is currently missing in the this template

[Bug] Node version error, cannot complete step 4.

267984735-b2358aaf-9827-4ea6-9f9c-5b473d73c99a

I used a workaround from #39 (comment), by adding

- uses: actions/setup-node@v3
       with: 
         node-version: 16

after both checkout actions.

However, since the step has already updated to 5, my new PR (with a commit adding node 16) will not get automatically squash merged by run: gh pr merge --squash staging-test because below check fails since now is step 5

    if: >-
     ${{ !github.event.repository.is_template
         && needs.get_current_step.outputs.current_step == 4 }}

The following will not run too. Not sure why this script wants to Merge main into each branch, since throughout the exercises, after run: gh pr merge --squash, only main branch is meaningful and the others are left hanging useless.

run: |
         chmod +x ./.github/script/initialize-repository.sh
         ./.github/script/initialize-repository.sh

Step 5 actions also cannot complete because of same issue

[Bug] Syntax errors with workflow conditional expressions, needing to reset step to 0

Describe the bug

  1. Workflow step state is non-0

    It appears that previous development on the template did not revert https://github.com/skills/continuous-delivery-azure/blob/main/.github/script/STEP back to 0

  2. Invalid YAML for multi-line conditional

    Using all of the examples above, this is invalid syntax for block YAML use cases.

    Instead of:

          if: ${{ github.repository_owner != 'TBD-organization'
            && needs.get_current_step.outputs.current_step == 6 }}

    One of the following forms must be used:

    1. Single line

            if: ${{ github.repository_owner != 'TBD-organization' && needs.get_current_step.outputs.current_step == 6 }}
    2. Multi line block

            if: |
              ${{ github.repository_owner != 'TBD-organization'
                  && needs.get_current_step.outputs.current_step == 6 }}

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Device information

  • Type: [e.g. iPhone6]
  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

`spinup-destroy.yml` file and `azure-configuration` branch missing

Describe the bug

Step 3, Activity 1, subheading "Configuring your Azure environment" instructs to review the new workflow file spinup-destroy.yml in azure-configuration branch. However, I cannot see neither the file nor the branch being mentioned.

To Reproduce

Follow the lab manual to the section indicated at Describe the bug section of this issue.

Expected behavior

I am expeting to see both the file and the branch being mentioned at Describe the bug section of this issue.

Screenshots

(no relevant screenshot; left empty intentionally)

Device information

The issue isn't related to the device I am using.

Additional context

  1. Nothing I can think of that I can make it more clear. There seem to be some discussion that this file existed before, and some describing the reason for the absence of the file being contributed from not committing before or something. I couldn't quite understand it. If it can be explained in simpler terms, that'd be much appreciated.
  2. I tried following the lab twice from the top with fresh new sessions but I've failed on both occasions.

open email account[Feature]

Summary

A clear and concise description of what the problem is, and what you solution you want.

Changes

What changes this feature would introduce. Any risks these changes involve. Any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

[Bug] spin up label isn't created automatically

Summary

The course asks users to add a label that doesn't already exist, so they have to create it themselves.

How to reproduce

  1. Take the course
  2. When asked to add the spin up label you'll see it's not in your label list. Course will continue to work if you create it manually.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.