-
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.
Edits to move files in to the website
- Loading branch information
Chris McIntosh
committed
Jun 14, 2021
1 parent
0a71255
commit 7c1eef4
Showing
44 changed files
with
176 additions
and
520 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
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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## Your First Action {docsify-ignore-all} | ||
# Exercise 2 - A Basic CI Action | ||
|
||
[exercise-2](Exercises/02-Create-CI-Action.md ':include') | ||
|
||
|
||
# Exercise 2 A - Protected Branches | ||
[exercise2-a](Exercises/02.A-Create-QA-Branch.md ':include') | ||
|
||
# Exercise 2 B - Actions Context | ||
[exercise2-b](Exercises/02.B-Create-Context-Job.md ':include') | ||
|
||
# Exercise 2 C - Manual Jobs | ||
[exercise2-c](Exercises/02.C-Create-Manual-Job.md ':include') | ||
|
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## Updating Depenencies {docsify-ignore-all} | ||
# Exercise 3 - Dependabot | ||
[exercise-3](Exercises/03-Create-Dependabot-Config.md ':include') | ||
|
||
# Exercise 3 A - Dependency Locking | ||
[exercise-3](Exercises/03.A-Lock-Dependencies.md ':include') | ||
|
File renamed without changes.
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## Caching with Actions {docsify-ignore-all} | ||
|
||
Sometimes our workflows require us to pull down a large number of dependencies. As the time to download these dependencies goes up we can think about [caching them close to the Actions Runners](https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows) to speed up your run time. | ||
|
||
Take a look at [`actions/cache`](https://github.com/actions/cache) for samples | ||
Sample Maven Workflow: | ||
|
||
``` | ||
- name: Cache local Maven repository | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
``` | ||
|
||
Things to keep in mind about caching on GitHub.com | ||
- 5GB Max cache size per repository | ||
- 7 Day data retention | ||
- Scoped to key and branch | ||
- Avoid caching sensitive data |
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
## Continuous Testing With Actions {docsify-ignore-all} | ||
|
||
# Exercise 4 - Creating a basic Continuous Testing Action | ||
[continuous testing exercise](Exercises/04-Create-CT-Actions.md ':include') |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
## Security Scanning {docsify-ignore-all} | ||
|
||
# Exercise 5 - Creating GitHub Security Scan Actions | ||
[exercise 5 security scan](Exercises/05-Create-Security-Scan.md ':include') |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## Using Artifacts In Actions {docsify-ignore-all} | ||
|
||
# Exercise 6 - Uploading and Downloading Artifacts in Actions | ||
[exercise 6 upload and download artifacts](Exercises/06-Upload-Download-Artifacts.md ':include') | ||
|
||
# Exercise 6 A - Uploading and Downloading Artifacts with Artifactory in Actions | ||
[exercise 6 upload and download artifacts with artifactory](Exercises/06.A-Upload-Download-Artifacts-%20from%20Artifactory.md ':include') |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## Create Continuous Delivery Actions {docsify-ignore-all} | ||
# Exercise 7 - Create CD Actions | ||
[exercise 7](Exercises/07-Create-CD-Actions.md ':include') | ||
|
||
# Exercise 7 A - Deploy on push to `master` or `main` | ||
[exercise 7](Exercises/07.A-Deploy-Prod.md ':include') | ||
|
||
# Exercise 7 B - Deploy a Release | ||
[exercise 7](Exercises/07.B-Deploy-Release.md ':include') |
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## GitHub Script Actions {docsify-ignore-all} | ||
|
||
# Exercise 8 A - GitHub Script | ||
[exercise 8 a](Exercises/08.A-GitHub-Script-Actions.md ':include') | ||
|
||
# Exercise 8 B - Deployment API | ||
[exercise 8 b](Exercises/08.B-Add-Deployment-API.md ':include') | ||
|
||
# Exercise 8 C - Wait For Step | ||
[exercise 8 c](Exercises/08.C-Add-Wait-For-Steps.md ':include') | ||
|
||
# Exercise 8 D - Splitting Jobs | ||
[exercise 8 d](Exercises/08.D-Split-Jobs-for-Speed.md ':include') |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
## Action Types {docsify-ignore-all} | ||
GitHub Actions are open source repositories written in a [variety of languages](https://docs.github.com/en/actions/creating-actions/about-actions). | ||
|
||
### [Docker Actions](https://docs.github.com/en/actions/creating-actions/creating-a-docker-container-action) | ||
Actions can be written with Dockerfiles so you can utilize any language and environment that your step needs. | ||
Sample `action.yml` for a Docker action: | ||
|
||
``` | ||
# action.yml | ||
name: 'Hello World' | ||
description: 'Greet someone and record the time' | ||
inputs: | ||
who-to-greet: # id of input | ||
description: 'Who to greet' | ||
required: true | ||
default: 'World' | ||
outputs: | ||
time: # id of output | ||
description: 'The time we greeted you' | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
args: | ||
- ${{ inputs.who-to-greet }} | ||
``` | ||
|
||
### [Node Actions](https://docs.github.com/en/actions/creating-actions/creating-a-javascript-action) | ||
Traditional Actions are written in Node. They can utilize any language that can compile in to Javascript, so many of them are written in Typescript and compiled into a `index.js` file. | ||
GitHub provides [helper libraries](https://github.com/actions/toolkit) that allow you to interact with the Actions context and the GitHub API easily. | ||
|
||
### [Composite Actions](https://docs.github.com/en/actions/creating-actions/creating-a-composite-run-steps-action) | ||
Finally you can now write Shell scripts and treat them like actions. | ||
Sample `action.yml`: | ||
|
||
``` | ||
name: 'Hello World' | ||
description: 'Greet someone' | ||
inputs: | ||
who-to-greet: # id of input | ||
description: 'Who to greet' | ||
required: true | ||
default: 'World' | ||
outputs: | ||
random-number: | ||
description: "Random number" | ||
value: ${{ steps.random-number-generator.outputs.random-id }} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- run: echo Hello ${{ inputs.who-to-greet }}. | ||
shell: bash | ||
- id: random-number-generator | ||
run: echo "::set-output name=random-id::$(echo $RANDOM)" | ||
shell: bash | ||
- run: ${{ github.action_path }}/goodbye.sh | ||
shell: bash | ||
``` | ||
|
Oops, something went wrong.