chore: use node16 for actions (#24540)
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com> Co-authored-by: Melanie Yarbrough <11952755+myarb@users.noreply.github.com>
This commit is contained in:
@@ -69,7 +69,7 @@ jobs:
|
|||||||
java-version: '17'
|
java-version: '17'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- name: Validate Gradle wrapper
|
- name: Validate Gradle wrapper
|
||||||
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
|
uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
|
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
|
||||||
with:
|
with:
|
||||||
@@ -105,7 +105,7 @@ steps:
|
|||||||
java-version: '17'
|
java-version: '17'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- name: Validate Gradle wrapper
|
- name: Validate Gradle wrapper
|
||||||
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
|
uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3
|
||||||
- name: Run the Gradle package task
|
- name: Run the Gradle package task
|
||||||
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
|
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
|
||||||
with:
|
with:
|
||||||
@@ -136,7 +136,7 @@ steps:
|
|||||||
java-version: '17'
|
java-version: '17'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- name: Validate Gradle wrapper
|
- name: Validate Gradle wrapper
|
||||||
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
|
uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
|
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -267,7 +267,7 @@ The following example caches dependencies for pnpm (v6.10+).
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: {% data reusables.actions.action-checkout %}
|
- uses: {% data reusables.actions.action-checkout %}
|
||||||
- uses: pnpm/action-setup@646cdf48217256a3d0b80361c5a50727664284f2
|
- uses: pnpm/action-setup@0609f0983b7a228f052f81ef4c3d6510cae254ad
|
||||||
with:
|
with:
|
||||||
version: 6.10.0
|
version: 6.10.0
|
||||||
- uses: {% data reusables.actions.action-setup-node %}
|
- uses: {% data reusables.actions.action-setup-node %}
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: {% data reusables.actions.action-checkout %}
|
- uses: {% data reusables.actions.action-checkout %}
|
||||||
- name: Set up Ruby
|
- name: Set up Ruby
|
||||||
uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108
|
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
|
||||||
with:
|
with:
|
||||||
ruby-version: '3.1'
|
ruby-version: '3.1'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
@@ -76,7 +76,7 @@ The `setup-ruby` action takes a Ruby version as an input and configures that ver
|
|||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: {% data reusables.actions.action-checkout %}
|
- uses: {% data reusables.actions.action-checkout %}
|
||||||
- uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108
|
- uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
|
||||||
with:
|
with:
|
||||||
ruby-version: '3.1' # Not needed with a .ruby-version file
|
ruby-version: '3.1' # Not needed with a .ruby-version file
|
||||||
- run: bundle install
|
- run: bundle install
|
||||||
@@ -126,7 +126,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: {% data reusables.actions.action-checkout %}
|
- uses: {% data reusables.actions.action-checkout %}
|
||||||
- name: {% raw %}Set up Ruby ${{ matrix.ruby-version }}{% endraw %}
|
- name: {% raw %}Set up Ruby ${{ matrix.ruby-version }}{% endraw %}
|
||||||
uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108
|
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
|
||||||
with:
|
with:
|
||||||
ruby-version: {% raw %}${{ matrix.ruby-version }}{% endraw %}
|
ruby-version: {% raw %}${{ matrix.ruby-version }}{% endraw %}
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
@@ -142,7 +142,7 @@ The `setup-ruby` action will automatically install bundler for you. The version
|
|||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: {% data reusables.actions.action-checkout %}
|
- uses: {% data reusables.actions.action-checkout %}
|
||||||
- uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108
|
- uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
|
||||||
with:
|
with:
|
||||||
ruby-version: '3.1'
|
ruby-version: '3.1'
|
||||||
- run: bundle install
|
- run: bundle install
|
||||||
@@ -159,7 +159,7 @@ To enable caching, set the following.
|
|||||||
{% raw %}
|
{% raw %}
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108
|
- uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
|
||||||
with:
|
with:
|
||||||
bundler-cache: true
|
bundler-cache: true
|
||||||
```
|
```
|
||||||
@@ -231,7 +231,7 @@ jobs:
|
|||||||
continue-on-error: {% raw %}${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}{% endraw %}
|
continue-on-error: {% raw %}${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}{% endraw %}
|
||||||
steps:
|
steps:
|
||||||
- uses: {% data reusables.actions.action-checkout %}
|
- uses: {% data reusables.actions.action-checkout %}
|
||||||
- uses: ruby/setup-ruby@477b21f02be01bcb8030d50f37cfec92bfa615b6
|
- uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
|
||||||
with:
|
with:
|
||||||
ruby-version: {% raw %}${{ matrix.ruby }}{% endraw %}
|
ruby-version: {% raw %}${{ matrix.ruby }}{% endraw %}
|
||||||
- run: bundle install
|
- run: bundle install
|
||||||
@@ -256,7 +256,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: {% data reusables.actions.action-checkout %}
|
- uses: {% data reusables.actions.action-checkout %}
|
||||||
- uses: ruby/setup-ruby@477b21f02be01bcb8030d50f37cfec92bfa615b6
|
- uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
|
||||||
with:
|
with:
|
||||||
ruby-version: 2.6
|
ruby-version: 2.6
|
||||||
- run: bundle install
|
- run: bundle install
|
||||||
@@ -297,7 +297,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: {% data reusables.actions.action-checkout %}
|
- uses: {% data reusables.actions.action-checkout %}
|
||||||
- name: Set up Ruby 2.6
|
- name: Set up Ruby 2.6
|
||||||
uses: ruby/setup-ruby@477b21f02be01bcb8030d50f37cfec92bfa615b6
|
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
|
||||||
with:
|
with:
|
||||||
ruby-version: 2.6
|
ruby-version: 2.6
|
||||||
- run: bundle install
|
- run: bundle install
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ jobs:
|
|||||||
swift: ["5.2", "5.3"]
|
swift: ["5.2", "5.3"]
|
||||||
runs-on: {% raw %}${{ matrix.os }}{% endraw %}
|
runs-on: {% raw %}${{ matrix.os }}{% endraw %}
|
||||||
steps:
|
steps:
|
||||||
- uses: fwal/setup-swift@2040b795e5c453c3a05fcb8316496afc8a74f192
|
- uses: fwal/setup-swift@ffb5a44dd03d3d22fb26f48fa43e43fa4ce655a7
|
||||||
with:
|
with:
|
||||||
swift-version: {% raw %}${{ matrix.swift }}{% endraw %}
|
swift-version: {% raw %}${{ matrix.swift }}{% endraw %}
|
||||||
- uses: {% data reusables.actions.action-checkout %}
|
- uses: {% data reusables.actions.action-checkout %}
|
||||||
@@ -104,7 +104,7 @@ You can configure your job to use a single specific version of Swift, such as `5
|
|||||||
{% raw %}
|
{% raw %}
|
||||||
```yaml{:copy}
|
```yaml{:copy}
|
||||||
steps:
|
steps:
|
||||||
- uses: fwal/setup-swift@2040b795e5c453c3a05fcb8316496afc8a74f192
|
- uses: fwal/setup-swift@ffb5a44dd03d3d22fb26f48fa43e43fa4ce655a7
|
||||||
with:
|
with:
|
||||||
swift-version: "5.3.3"
|
swift-version: "5.3.3"
|
||||||
- name: Get swift version
|
- name: Get swift version
|
||||||
@@ -119,7 +119,7 @@ You can use the same commands that you use locally to build and test your code u
|
|||||||
```yaml{:copy}
|
```yaml{:copy}
|
||||||
steps:
|
steps:
|
||||||
- uses: {% data reusables.actions.action-checkout %}
|
- uses: {% data reusables.actions.action-checkout %}
|
||||||
- uses: fwal/setup-swift@2040b795e5c453c3a05fcb8316496afc8a74f192
|
- uses: fwal/setup-swift@ffb5a44dd03d3d22fb26f48fa43e43fa4ce655a7
|
||||||
with:
|
with:
|
||||||
swift-version: "5.3.3"
|
swift-version: "5.3.3"
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ Each Git commit receives a calculated SHA value, which is unique and immutable.
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/javascript-action@172239021f7ba04fe7327647b213799853a9eb89
|
- uses: actions/javascript-action@a824008085750b8e136effc585c3cd6082bd575f
|
||||||
```
|
```
|
||||||
|
|
||||||
## Creating a README file for your action
|
## Creating a README file for your action
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ The time we greeted you.
|
|||||||
## Example usage
|
## Example usage
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
uses: actions/hello-world-javascript-action@v1.1
|
uses: actions/hello-world-javascript-action@e76147da8e5c81eaf017dede5645551d4b94427b
|
||||||
with:
|
with:
|
||||||
who-to-greet: 'Mona the Octocat'
|
who-to-greet: 'Mona the Octocat'
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -322,7 +322,7 @@ runs:
|
|||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
# Reference a specific commit
|
# Reference a specific commit
|
||||||
- uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
|
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
|
||||||
# Reference the major version of a release
|
# Reference the major version of a release
|
||||||
- uses: {% data reusables.actions.action-checkout %}
|
- uses: {% data reusables.actions.action-checkout %}
|
||||||
# Reference a specific version
|
# Reference a specific version
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ jobs:
|
|||||||
uses: {% data reusables.actions.action-checkout %}
|
uses: {% data reusables.actions.action-checkout %}
|
||||||
|
|
||||||
{% raw %}- name: Configure AWS credentials
|
{% raw %}- name: Configure AWS credentials
|
||||||
uses: aws-actions/configure-aws-credentials@13d241b293754004c80624b5567555c4a39ffbe3
|
uses: aws-actions/configure-aws-credentials@0e613a0980cbf65ed5b322eb7a1e075d28913a83
|
||||||
with:
|
with:
|
||||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
@@ -131,7 +131,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Login to Amazon ECR
|
- name: Login to Amazon ECR
|
||||||
id: login-ecr
|
id: login-ecr
|
||||||
uses: aws-actions/amazon-ecr-login@aaf69d68aa3fb14c1d5a6be9ac61fe15b48453a2
|
uses: aws-actions/amazon-ecr-login@62f4f872db3836360b72999f4b87f1ff13310f3a
|
||||||
|
|
||||||
- name: Build, tag, and push image to Amazon ECR
|
- name: Build, tag, and push image to Amazon ECR
|
||||||
id: build-image
|
id: build-image
|
||||||
@@ -152,14 +152,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Fill in the new image ID in the Amazon ECS task definition
|
- name: Fill in the new image ID in the Amazon ECS task definition
|
||||||
id: task-def
|
id: task-def
|
||||||
uses: aws-actions/amazon-ecs-render-task-definition@97587c9d45a4930bf0e3da8dd2feb2a463cf4a3a
|
uses: aws-actions/amazon-ecs-render-task-definition@c804dfbdd57f713b6c079302a4c01db7017a36fc
|
||||||
with:
|
with:
|
||||||
task-definition: ${{ env.ECS_TASK_DEFINITION }}
|
task-definition: ${{ env.ECS_TASK_DEFINITION }}
|
||||||
container-name: ${{ env.CONTAINER_NAME }}
|
container-name: ${{ env.CONTAINER_NAME }}
|
||||||
image: ${{ steps.build-image.outputs.image }}
|
image: ${{ steps.build-image.outputs.image }}
|
||||||
|
|
||||||
- name: Deploy Amazon ECS task definition
|
- name: Deploy Amazon ECS task definition
|
||||||
uses: aws-actions/amazon-ecs-deploy-task-definition@de0132cf8cdedb79975c6d42b77eb7ea193cf28e
|
uses: aws-actions/amazon-ecs-deploy-task-definition@df9643053eda01f169e64a0e60233aacca83799a
|
||||||
with:
|
with:
|
||||||
task-definition: ${{ steps.task-def.outputs.task-definition }}
|
task-definition: ${{ steps.task-def.outputs.task-definition }}
|
||||||
service: ${{ env.ECS_SERVICE }}
|
service: ${{ env.ECS_SERVICE }}
|
||||||
|
|||||||
@@ -105,10 +105,10 @@ jobs:
|
|||||||
- uses: {% data reusables.actions.action-checkout %}
|
- uses: {% data reusables.actions.action-checkout %}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Log in to GitHub container registry
|
- name: Log in to GitHub container registry
|
||||||
uses: docker/login-action@v1.10.0
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: {% raw %}${{ github.actor }}{% endraw %}
|
username: {% raw %}${{ github.actor }}{% endraw %}
|
||||||
@@ -118,7 +118,7 @@ jobs:
|
|||||||
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
|
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
|
||||||
|
|
||||||
- name: Build and push container image to registry
|
- name: Build and push container image to registry
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: ghcr.io/{% raw %}${{ env.REPO }}{% endraw %}:{% raw %}${{ github.sha }}{% endraw %}
|
tags: ghcr.io/{% raw %}${{ env.REPO }}{% endraw %}:{% raw %}${{ github.sha }}{% endraw %}
|
||||||
@@ -139,7 +139,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy to Azure Web App
|
- name: Deploy to Azure Web App
|
||||||
id: deploy-to-webapp
|
id: deploy-to-webapp
|
||||||
uses: azure/webapps-deploy@0b651ed7546ecfc75024011f76944cb9b381ef1e
|
uses: azure/webapps-deploy@05ac4e98bfa0f856e6669624239291c73ca27698
|
||||||
with:
|
with:
|
||||||
app-name: {% raw %}${{ env.AZURE_WEBAPP_NAME }}{% endraw %}
|
app-name: {% raw %}${{ env.AZURE_WEBAPP_NAME }}{% endraw %}
|
||||||
publish-profile: {% raw %}${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}{% endraw %}
|
publish-profile: {% raw %}${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}{% endraw %}
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy to Azure Web App
|
- name: Deploy to Azure Web App
|
||||||
id: deploy-to-webapp
|
id: deploy-to-webapp
|
||||||
uses: azure/webapps-deploy@0b651ed7546ecfc75024011f76944cb9b381ef1e
|
uses: azure/webapps-deploy@05ac4e98bfa0f856e6669624239291c73ca27698
|
||||||
with:
|
with:
|
||||||
app-name: {% raw %}${{ env.AZURE_WEBAPP_NAME }}{% endraw %}
|
app-name: {% raw %}${{ env.AZURE_WEBAPP_NAME }}{% endraw %}
|
||||||
publish-profile: {% raw %}${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}{% endraw %}
|
publish-profile: {% raw %}${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}{% endraw %}
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy to Azure Web App
|
- name: Deploy to Azure Web App
|
||||||
id: deploy-to-webapp
|
id: deploy-to-webapp
|
||||||
uses: azure/webapps-deploy@0b651ed7546ecfc75024011f76944cb9b381ef1e
|
uses: azure/webapps-deploy@05ac4e98bfa0f856e6669624239291c73ca27698
|
||||||
with:
|
with:
|
||||||
app-name: {% raw %}${{ env.AZURE_WEBAPP_NAME }}{% endraw %}
|
app-name: {% raw %}${{ env.AZURE_WEBAPP_NAME }}{% endraw %}
|
||||||
publish-profile: {% raw %}${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}{% endraw %}
|
publish-profile: {% raw %}${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}{% endraw %}
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ jobs:
|
|||||||
|
|
||||||
- name: 'Deploy to Azure WebApp'
|
- name: 'Deploy to Azure WebApp'
|
||||||
id: deploy-to-webapp
|
id: deploy-to-webapp
|
||||||
uses: azure/webapps-deploy@0b651ed7546ecfc75024011f76944cb9b381ef1e
|
uses: azure/webapps-deploy@05ac4e98bfa0f856e6669624239291c73ca27698
|
||||||
with:
|
with:
|
||||||
app-name: {% raw %}${{ env.AZURE_WEBAPP_NAME }}{% endraw %}
|
app-name: {% raw %}${{ env.AZURE_WEBAPP_NAME }}{% endraw %}
|
||||||
publish-profile: {% raw %}${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}{% endraw %}
|
publish-profile: {% raw %}${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}{% endraw %}
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Check if composer.json exists
|
- name: Check if composer.json exists
|
||||||
id: check_files
|
id: check_files
|
||||||
uses: andstor/file-existence-action@v1
|
uses: andstor/file-existence-action@v2
|
||||||
with:
|
with:
|
||||||
files: 'composer.json'
|
files: 'composer.json'
|
||||||
|
|
||||||
@@ -142,7 +142,7 @@ jobs:
|
|||||||
|
|
||||||
- name: 'Deploy to Azure Web App'
|
- name: 'Deploy to Azure Web App'
|
||||||
id: deploy-to-webapp
|
id: deploy-to-webapp
|
||||||
uses: azure/webapps-deploy@0b651ed7546ecfc75024011f76944cb9b381ef1e
|
uses: azure/webapps-deploy@05ac4e98bfa0f856e6669624239291c73ca27698
|
||||||
with:
|
with:
|
||||||
app-name: {% raw %}${{ env.AZURE_WEBAPP_NAME }}{% endraw %}
|
app-name: {% raw %}${{ env.AZURE_WEBAPP_NAME }}{% endraw %}
|
||||||
publish-profile: {% raw %}${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}{% endraw %}
|
publish-profile: {% raw %}${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}{% endraw %}
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ jobs:
|
|||||||
|
|
||||||
- name: 'Deploy to Azure Web App'
|
- name: 'Deploy to Azure Web App'
|
||||||
id: deploy-to-webapp
|
id: deploy-to-webapp
|
||||||
uses: azure/webapps-deploy@0b651ed7546ecfc75024011f76944cb9b381ef1e
|
uses: azure/webapps-deploy@05ac4e98bfa0f856e6669624239291c73ca27698
|
||||||
with:
|
with:
|
||||||
app-name: {% raw %}${{ env.AZURE_WEBAPP_NAME }}{% endraw %}
|
app-name: {% raw %}${{ env.AZURE_WEBAPP_NAME }}{% endraw %}
|
||||||
publish-profile: {% raw %}${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}{% endraw %}
|
publish-profile: {% raw %}${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}{% endraw %}
|
||||||
|
|||||||
@@ -78,12 +78,12 @@ jobs:
|
|||||||
- uses: {% data reusables.actions.action-checkout %}
|
- uses: {% data reusables.actions.action-checkout %}
|
||||||
|
|
||||||
- name: Azure Login
|
- name: Azure Login
|
||||||
uses: azure/login@89d153571fe9a34ed70fcf9f1d95ab8debea7a73
|
uses: azure/login@14a755a4e2fd6dff25794233def4f2cf3f866955
|
||||||
with:
|
with:
|
||||||
creds: {% raw %}${{ secrets.AZURE_CREDENTIALS }}{% endraw %}
|
creds: {% raw %}${{ secrets.AZURE_CREDENTIALS }}{% endraw %}
|
||||||
|
|
||||||
- name: Build image on ACR
|
- name: Build image on ACR
|
||||||
uses: azure/CLI@7378ce2ca3c38b4b063feb7a4cbe384fef978055
|
uses: azure/CLI@61bb69d64d613b52663984bf12d6bac8fd7b3cc8
|
||||||
with:
|
with:
|
||||||
azcliversion: 2.29.1
|
azcliversion: 2.29.1
|
||||||
inlineScript: |
|
inlineScript: |
|
||||||
@@ -91,7 +91,7 @@ jobs:
|
|||||||
az acr build -t -t {% raw %}${{ env.REGISTRY_URL }}{% endraw %}/{% raw %}${{ env.PROJECT_NAME }}{% endraw %}:{% raw %}${{ github.sha }}{% endraw %}
|
az acr build -t -t {% raw %}${{ env.REGISTRY_URL }}{% endraw %}/{% raw %}${{ env.PROJECT_NAME }}{% endraw %}:{% raw %}${{ github.sha }}{% endraw %}
|
||||||
|
|
||||||
- name: Gets K8s context
|
- name: Gets K8s context
|
||||||
uses: azure/aks-set-context@4e5aec273183a197b181314721843e047123d9fa
|
uses: azure/aks-set-context@94ccc775c1997a3fcfbfbce3c459fec87e0ab188
|
||||||
with:
|
with:
|
||||||
creds: {% raw %}${{ secrets.AZURE_CREDENTIALS }}{% endraw %}
|
creds: {% raw %}${{ secrets.AZURE_CREDENTIALS }}{% endraw %}
|
||||||
resource-group: {% raw %}${{ env.RESOURCE_GROUP }}{% endraw %}
|
resource-group: {% raw %}${{ env.RESOURCE_GROUP }}{% endraw %}
|
||||||
@@ -99,7 +99,7 @@ jobs:
|
|||||||
id: login
|
id: login
|
||||||
|
|
||||||
- name: Configure deployment
|
- name: Configure deployment
|
||||||
uses: azure/k8s-bake@773b6144a3732e3bf4c78b146a0bb9617b2e016b
|
uses: azure/k8s-bake@61041e8c2f75c1f01186c8f05fb8b24e1fc507d8
|
||||||
with:
|
with:
|
||||||
renderEngine: 'helm'
|
renderEngine: 'helm'
|
||||||
helmChart: {% raw %}${{ env.CHART_PATH }}{% endraw %}
|
helmChart: {% raw %}${{ env.CHART_PATH }}{% endraw %}
|
||||||
@@ -110,7 +110,7 @@ jobs:
|
|||||||
id: bake
|
id: bake
|
||||||
|
|
||||||
- name: Deploys application
|
- name: Deploys application
|
||||||
- uses: Azure/k8s-deploy@c8fbd76ededaad2799c054a9fd5d0fa5d4e9aee4
|
- uses: Azure/k8s-deploy@dd4bbd13a5abd2fc9ca8bdcb8aee152bb718fa78
|
||||||
with:
|
with:
|
||||||
manifests: {% raw %}${{ steps.bake.outputs.manifestsBundle }}{% endraw %}
|
manifests: {% raw %}${{ steps.bake.outputs.manifestsBundle }}{% endraw %}
|
||||||
images: |
|
images: |
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ jobs:
|
|||||||
uses: {% data reusables.actions.action-checkout %}
|
uses: {% data reusables.actions.action-checkout %}
|
||||||
|
|
||||||
# Setup gcloud CLI
|
# Setup gcloud CLI
|
||||||
- uses: google-github-actions/setup-gcloud@94337306dda8180d967a56932ceb4ddcf01edae7
|
- uses: google-github-actions/setup-gcloud@1bee7de035d65ec5da40a31f8589e240eba8fde5
|
||||||
with:
|
with:
|
||||||
service_account_key: {% raw %}${{ secrets.GKE_SA_KEY }}{% endraw %}
|
service_account_key: {% raw %}${{ secrets.GKE_SA_KEY }}{% endraw %}
|
||||||
project_id: {% raw %}${{ secrets.GKE_PROJECT }}{% endraw %}
|
project_id: {% raw %}${{ secrets.GKE_PROJECT }}{% endraw %}
|
||||||
@@ -175,7 +175,7 @@ jobs:
|
|||||||
gcloud --quiet auth configure-docker
|
gcloud --quiet auth configure-docker
|
||||||
|
|
||||||
# Get the GKE credentials so we can deploy to the cluster
|
# Get the GKE credentials so we can deploy to the cluster
|
||||||
- uses: google-github-actions/get-gke-credentials@fb08709ba27618c31c09e014e1d8364b02e5042e
|
- uses: google-github-actions/get-gke-credentials@db150f2cc60d1716e61922b832eae71d2a45938f
|
||||||
with:
|
with:
|
||||||
cluster_name: {% raw %}${{ env.GKE_CLUSTER }}{% endraw %}
|
cluster_name: {% raw %}${{ env.GKE_CLUSTER }}{% endraw %}
|
||||||
location: {% raw %}${{ env.GKE_ZONE }}{% endraw %}
|
location: {% raw %}${{ env.GKE_ZONE }}{% endraw %}
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ jobs:
|
|||||||
- if: {% raw %}${{ failure() }}{% endraw %}
|
- if: {% raw %}${{ failure() }}{% endraw %}
|
||||||
name: Create issue from file
|
name: Create issue from file
|
||||||
id: broken-link-report
|
id: broken-link-report
|
||||||
uses: peter-evans/create-issue-from-file@b4f9ee0a9d4abbfc6986601d9b1a4f8f8e74c77e
|
uses: peter-evans/create-issue-from-file@ceef9be92406ace67ab5421f66570acf213ec395
|
||||||
with:
|
with:
|
||||||
token: {% raw %}${{ env.GITHUB_TOKEN }}{% endraw %}
|
token: {% raw %}${{ env.GITHUB_TOKEN }}{% endraw %}
|
||||||
|
|
||||||
@@ -380,7 +380,7 @@ If the `check-english-links.js` script detects broken links and returns a non-ze
|
|||||||
- if: {% raw %}${{ failure() }}{% endraw %}
|
- if: {% raw %}${{ failure() }}{% endraw %}
|
||||||
name: Create issue from file
|
name: Create issue from file
|
||||||
id: broken-link-report
|
id: broken-link-report
|
||||||
uses: peter-evans/create-issue-from-file@b4f9ee0a9d4abbfc6986601d9b1a4f8f8e74c77e
|
uses: peter-evans/create-issue-from-file@ceef9be92406ace67ab5421f66570acf213ec395
|
||||||
with:
|
with:
|
||||||
token: {% raw %}${{ env.GITHUB_TOKEN }}{% endraw %}
|
token: {% raw %}${{ env.GITHUB_TOKEN }}{% endraw %}
|
||||||
|
|
||||||
@@ -392,7 +392,7 @@ If the `check-english-links.js` script detects broken links and returns a non-ze
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
|
||||||
Uses the `peter-evans/create-issue-from-file` action to create a new {% data variables.product.prodname_dotcom %} issue. This example is pinned to a specific version of the action, using the `b4f9ee0a9d4abbfc6986601d9b1a4f8f8e74c77e` SHA.
|
Uses the `peter-evans/create-issue-from-file` action to create a new {% data variables.product.prodname_dotcom %} issue. This example is pinned to a specific version of the action, using the `ceef9be92406ace67ab5421f66570acf213ec395` SHA.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ You need to use specific syntax to tell {% data variables.product.prodname_dotco
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/hello-world-javascript-action@v1.1
|
- uses: actions/hello-world-javascript-action@e76147da8e5c81eaf017dede5645551d4b94427b
|
||||||
if: {% raw %}${{ <expression> }}{% endraw %}
|
if: {% raw %}${{ <expression> }}{% endraw %}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ If you need more reliable versioning, you should use the SHA value associated wi
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/javascript-action@172239021f7ba04fe7327647b213799853a9eb89
|
- uses: actions/javascript-action@a824008085750b8e136effc585c3cd6082bd575f
|
||||||
```
|
```
|
||||||
|
|
||||||
### Using branches
|
### Using branches
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ In the tutorial, you will first make a workflow file that uses the [`peter-evans
|
|||||||
issues: write
|
issues: write
|
||||||
steps:
|
steps:
|
||||||
- name: Add comment
|
- name: Add comment
|
||||||
uses: peter-evans/create-or-update-comment@a35cf36e5301d70b76f316e867e7788a55a31dae
|
uses: peter-evans/create-or-update-comment@5f728c3dae25f329afbe34ee4d08eef25569d79f
|
||||||
with:
|
with:
|
||||||
issue-number: {% raw %}${{ github.event.issue.number }}{% endraw %}
|
issue-number: {% raw %}${{ github.event.issue.number }}{% endraw %}
|
||||||
body: |
|
body: |
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ In the tutorial, you will first make a workflow file that uses the [`alex-page/g
|
|||||||
move-assigned-card:
|
move-assigned-card:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: alex-page/github-project-automation-plus@5bcba1c1c091a222584d10913e5c060d32c44044
|
- uses: alex-page/github-project-automation-plus@7ffb872c64bd809d23563a130a0a97d01dfa8f43
|
||||||
with:
|
with:
|
||||||
project: Docs Work
|
project: Docs Work
|
||||||
column: In Progress
|
column: In Progress
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ In the tutorial, you will first make a workflow file that uses the [`imjohnbo/is
|
|||||||
issues: write
|
issues: write
|
||||||
steps:
|
steps:
|
||||||
- name: Create team sync issue
|
- name: Create team sync issue
|
||||||
uses: imjohnbo/issue-bot@3daae12aa54d38685d7ff8459fc8a2aee8cea98b
|
uses: imjohnbo/issue-bot@3d96848fb5e9a4a473bb81ae62b4b4866a56e93a
|
||||||
with:
|
with:
|
||||||
assignees: "monalisa, doctocat, hubot"
|
assignees: "monalisa, doctocat, hubot"
|
||||||
labels: "weekly sync, docs-team"
|
labels: "weekly sync, docs-team"
|
||||||
|
|||||||
@@ -403,7 +403,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: {% data reusables.actions.action-checkout %}
|
- uses: {% data reusables.actions.action-checkout %}
|
||||||
- name: Setup Ruby
|
- name: Setup Ruby
|
||||||
uses: eregon/use-ruby-action@477b21f02be01bcb8030d50f37cfec92bfa615b6
|
uses: eregon/use-ruby-action@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
|
||||||
with:
|
with:
|
||||||
ruby-version: {% raw %}${{ matrix.ruby }}{% endraw %}
|
ruby-version: {% raw %}${{ matrix.ruby }}{% endraw %}
|
||||||
- name: Cache dependencies
|
- name: Cache dependencies
|
||||||
|
|||||||
@@ -93,19 +93,19 @@ jobs:
|
|||||||
uses: {% data reusables.actions.action-checkout %}
|
uses: {% data reusables.actions.action-checkout %}
|
||||||
|
|
||||||
- name: Log in to Docker Hub
|
- name: Log in to Docker Hub
|
||||||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
|
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
||||||
with:
|
with:
|
||||||
username: {% raw %}${{ secrets.DOCKER_USERNAME }}{% endraw %}
|
username: {% raw %}${{ secrets.DOCKER_USERNAME }}{% endraw %}
|
||||||
password: {% raw %}${{ secrets.DOCKER_PASSWORD }}{% endraw %}
|
password: {% raw %}${{ secrets.DOCKER_PASSWORD }}{% endraw %}
|
||||||
|
|
||||||
- name: Extract metadata (tags, labels) for Docker
|
- name: Extract metadata (tags, labels) for Docker
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
|
||||||
with:
|
with:
|
||||||
images: my-docker-hub-namespace/my-docker-hub-repository
|
images: my-docker-hub-namespace/my-docker-hub-repository
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
|
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
@@ -174,14 +174,14 @@ jobs:
|
|||||||
uses: {% data reusables.actions.action-checkout %}
|
uses: {% data reusables.actions.action-checkout %}
|
||||||
|
|
||||||
- name: Log in to GitHub Docker Registry
|
- name: Log in to GitHub Docker Registry
|
||||||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
|
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
||||||
with:
|
with:
|
||||||
registry: {% ifversion ghae %}docker.YOUR-HOSTNAME.com{% else %}docker.pkg.github.com{% endif %}
|
registry: {% ifversion ghae %}docker.YOUR-HOSTNAME.com{% else %}docker.pkg.github.com{% endif %}
|
||||||
username: {% raw %}${{ github.actor }}{% endraw %}
|
username: {% raw %}${{ github.actor }}{% endraw %}
|
||||||
password: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %}
|
password: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
|
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
@@ -226,13 +226,13 @@ jobs:
|
|||||||
uses: {% data reusables.actions.action-checkout %}
|
uses: {% data reusables.actions.action-checkout %}
|
||||||
|
|
||||||
- name: Log in to Docker Hub
|
- name: Log in to Docker Hub
|
||||||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
|
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
||||||
with:
|
with:
|
||||||
username: {% raw %}${{ secrets.DOCKER_USERNAME }}{% endraw %}
|
username: {% raw %}${{ secrets.DOCKER_USERNAME }}{% endraw %}
|
||||||
password: {% raw %}${{ secrets.DOCKER_PASSWORD }}{% endraw %}
|
password: {% raw %}${{ secrets.DOCKER_PASSWORD }}{% endraw %}
|
||||||
|
|
||||||
- name: Log in to the {% ifversion fpt or ghec or ghes > 3.4 %}Container{% else %}Docker{% endif %} registry
|
- name: Log in to the {% ifversion fpt or ghec or ghes > 3.4 %}Container{% else %}Docker{% endif %} registry
|
||||||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
|
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
||||||
with:
|
with:
|
||||||
registry: {% ifversion fpt or ghec %}ghcr.io{% elsif ghae %}docker.YOUR-HOSTNAME.com{% elsif ghes > 3.4 %}{% data reusables.package_registry.container-registry-hostname %}{% else %}docker.pkg.github.com{% endif %}
|
registry: {% ifversion fpt or ghec %}ghcr.io{% elsif ghae %}docker.YOUR-HOSTNAME.com{% elsif ghes > 3.4 %}{% data reusables.package_registry.container-registry-hostname %}{% else %}docker.pkg.github.com{% endif %}
|
||||||
username: {% raw %}${{ github.actor }}{% endraw %}
|
username: {% raw %}${{ github.actor }}{% endraw %}
|
||||||
@@ -240,14 +240,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Extract metadata (tags, labels) for Docker
|
- name: Extract metadata (tags, labels) for Docker
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
my-docker-hub-namespace/my-docker-hub-repository
|
my-docker-hub-namespace/my-docker-hub-repository
|
||||||
{% ifversion fpt or ghec or ghes > 3.4 %}{% data reusables.package_registry.container-registry-hostname %}/{% raw %}${{ github.repository }}{% endraw %}{% elsif ghae %}{% raw %}docker.YOUR-HOSTNAME.com/${{ github.repository }}/my-image{% endraw %}{% else %}{% raw %}docker.pkg.github.com/${{ github.repository }}/my-image{% endraw %}{% endif %}
|
{% ifversion fpt or ghec or ghes > 3.4 %}{% data reusables.package_registry.container-registry-hostname %}/{% raw %}${{ github.repository }}{% endraw %}{% elsif ghae %}{% raw %}docker.YOUR-HOSTNAME.com/${{ github.repository }}/my-image{% endraw %}{% else %}{% raw %}docker.pkg.github.com/${{ github.repository }}/my-image{% endraw %}{% endif %}
|
||||||
|
|
||||||
- name: Build and push Docker images
|
- name: Build and push Docker images
|
||||||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
|
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ jobs:
|
|||||||
java-version: '11'
|
java-version: '11'
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
- name: Validate Gradle wrapper
|
- name: Validate Gradle wrapper
|
||||||
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
|
uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3
|
||||||
- name: Publish package
|
- name: Publish package
|
||||||
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
|
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
|
||||||
with:
|
with:
|
||||||
@@ -171,7 +171,7 @@ jobs:
|
|||||||
java-version: '11'
|
java-version: '11'
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
- name: Validate Gradle wrapper
|
- name: Validate Gradle wrapper
|
||||||
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
|
uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3
|
||||||
- name: Publish package
|
- name: Publish package
|
||||||
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
|
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
|
||||||
with:
|
with:
|
||||||
@@ -253,7 +253,7 @@ jobs:
|
|||||||
java-version: '11'
|
java-version: '11'
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
- name: Validate Gradle wrapper
|
- name: Validate Gradle wrapper
|
||||||
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
|
uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3
|
||||||
- name: Publish package
|
- name: Publish package
|
||||||
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
|
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -429,7 +429,7 @@ Actions are either JavaScript files or Docker containers. If the action you're u
|
|||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
# Reference a specific commit
|
# Reference a specific commit
|
||||||
- uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
|
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
|
||||||
# Reference the major version of a release
|
# Reference the major version of a release
|
||||||
- uses: {% data reusables.actions.action-checkout %}
|
- uses: {% data reusables.actions.action-checkout %}
|
||||||
# Reference a specific version
|
# Reference a specific version
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ jobs:
|
|||||||
uses: {% data reusables.actions.action-checkout %}
|
uses: {% data reusables.actions.action-checkout %}
|
||||||
|
|
||||||
- name: Login to private container registry for dependencies
|
- name: Login to private container registry for dependencies
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: https://1234567890.dkr.ecr.us-east-1.amazonaws.com
|
registry: https://1234567890.dkr.ecr.us-east-1.amazonaws.com
|
||||||
username: {% raw %}${{ secrets.READONLY_AWS_ACCESS_KEY_ID }}{% endraw %}
|
username: {% raw %}${{ secrets.READONLY_AWS_ACCESS_KEY_ID }}{% endraw %}
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Generate token
|
- name: Generate token
|
||||||
id: generate_token
|
id: generate_token
|
||||||
uses: tibdex/github-app-token@36464acb844fc53b9b8b2401da68844f6b05ebb0
|
uses: tibdex/github-app-token@c2055a00597a80f713b78b1650e8d3418f4d9a65
|
||||||
with:
|
with:
|
||||||
app_id: {% raw %}${{ secrets.APP_ID }}{% endraw %}
|
app_id: {% raw %}${{ secrets.APP_ID }}{% endraw %}
|
||||||
private_key: {% raw %}${{ secrets.APP_PEM }}{% endraw %}
|
private_key: {% raw %}${{ secrets.APP_PEM }}{% endraw %}
|
||||||
@@ -310,7 +310,7 @@ This workflow runs whenever a pull request in the repository is marked as "ready
|
|||||||
```yaml
|
```yaml
|
||||||
- name: Generate token
|
- name: Generate token
|
||||||
id: generate_token
|
id: generate_token
|
||||||
uses: tibdex/github-app-token@36464acb844fc53b9b8b2401da68844f6b05ebb0
|
uses: tibdex/github-app-token@c2055a00597a80f713b78b1650e8d3418f4d9a65
|
||||||
with:
|
with:
|
||||||
app_id: {% raw %}${{ secrets.APP_ID }}{% endraw %}
|
app_id: {% raw %}${{ secrets.APP_ID }}{% endraw %}
|
||||||
private_key: {% raw %}${{ secrets.APP_PEM }}{% endraw %}
|
private_key: {% raw %}${{ secrets.APP_PEM }}{% endraw %}
|
||||||
|
|||||||
@@ -154,13 +154,13 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: {% data reusables.actions.action-checkout %}
|
uses: {% data reusables.actions.action-checkout %}
|
||||||
- name: Log in to GitHub Docker Registry
|
- name: Log in to GitHub Docker Registry
|
||||||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
|
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
||||||
with:
|
with:
|
||||||
registry: {% ifversion ghae %}docker.YOUR-HOSTNAME.com{% else %}docker.pkg.github.com{% endif %}
|
registry: {% ifversion ghae %}docker.YOUR-HOSTNAME.com{% else %}docker.pkg.github.com{% endif %}
|
||||||
username: {% raw %}${{ github.actor }}{% endraw %}
|
username: {% raw %}${{ github.actor }}{% endraw %}
|
||||||
password: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %}
|
password: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %}
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
|
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
@@ -321,7 +321,7 @@ permissions:
|
|||||||
{% raw %}
|
{% raw %}
|
||||||
```yaml
|
```yaml
|
||||||
- name: Log in to the Container registry
|
- name: Log in to the Container registry
|
||||||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
|
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
@@ -340,7 +340,7 @@ permissions:
|
|||||||
```yaml
|
```yaml
|
||||||
- name: Extract metadata (tags, labels) for Docker
|
- name: Extract metadata (tags, labels) for Docker
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
```
|
```
|
||||||
@@ -357,7 +357,7 @@ permissions:
|
|||||||
{% raw %}
|
{% raw %}
|
||||||
```yaml
|
```yaml
|
||||||
- name: Log in to GitHub Docker Registry
|
- name: Log in to GitHub Docker Registry
|
||||||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
|
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
||||||
with:
|
with:
|
||||||
registry: {% endraw %}{% ifversion ghae %}docker.YOUR-HOSTNAME.com{% else %}docker.pkg.github.com{% endif %}{% raw %}
|
registry: {% endraw %}{% ifversion ghae %}docker.YOUR-HOSTNAME.com{% else %}docker.pkg.github.com{% endif %}{% raw %}
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
@@ -388,7 +388,7 @@ permissions:
|
|||||||
<td>
|
<td>
|
||||||
{% raw %}
|
{% raw %}
|
||||||
```yaml
|
```yaml
|
||||||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
|
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
|
||||||
```
|
```
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ For example, the following {% data variables.product.prodname_actions %} workflo
|
|||||||
{% data reusables.actions.actions-not-certified-by-github-comment %}
|
{% data reusables.actions.actions-not-certified-by-github-comment %}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
|
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ If you are authenticating with a {% data variables.product.prodname_github_app %
|
|||||||
steps:
|
steps:
|
||||||
- name: Generate token
|
- name: Generate token
|
||||||
id: generate_token
|
id: generate_token
|
||||||
uses: tibdex/github-app-token@36464acb844fc53b9b8b2401da68844f6b05ebb0
|
uses: tibdex/github-app-token@c2055a00597a80f713b78b1650e8d3418f4d9a65
|
||||||
with:
|
with:
|
||||||
app_id: {% raw %}${{ secrets.APP_ID }}{% endraw %}
|
app_id: {% raw %}${{ secrets.APP_ID }}{% endraw %}
|
||||||
private_key: {% raw %}${{ secrets.APP_PEM }}{% endraw %}
|
private_key: {% raw %}${{ secrets.APP_PEM }}{% endraw %}
|
||||||
@@ -249,7 +249,7 @@ If you are authenticating with a {% data variables.product.prodname_github_app %
|
|||||||
|
|
||||||
- name: Generate token
|
- name: Generate token
|
||||||
id: generate_token
|
id: generate_token
|
||||||
uses: tibdex/github-app-token@36464acb844fc53b9b8b2401da68844f6b05ebb0
|
uses: tibdex/github-app-token@c2055a00597a80f713b78b1650e8d3418f4d9a65
|
||||||
with:
|
with:
|
||||||
app_id: {% raw %}${{ secrets.APP_ID }}{% endraw %}
|
app_id: {% raw %}${{ secrets.APP_ID }}{% endraw %}
|
||||||
private_key: {% raw %}${{ secrets.APP_PEM }}{% endraw %}
|
private_key: {% raw %}${{ secrets.APP_PEM }}{% endraw %}
|
||||||
@@ -362,7 +362,7 @@ If you are authenticating with a {% data variables.product.prodname_github_app %
|
|||||||
steps:
|
steps:
|
||||||
- name: Generate token
|
- name: Generate token
|
||||||
id: generate_token
|
id: generate_token
|
||||||
uses: tibdex/github-app-token@36464acb844fc53b9b8b2401da68844f6b05ebb0
|
uses: tibdex/github-app-token@c2055a00597a80f713b78b1650e8d3418f4d9a65
|
||||||
with:
|
with:
|
||||||
app_id: {% raw %}${{ secrets.APP_ID }}{% endraw %}
|
app_id: {% raw %}${{ secrets.APP_ID }}{% endraw %}
|
||||||
private_key: {% raw %}${{ secrets.APP_PEM }}{% endraw %}
|
private_key: {% raw %}${{ secrets.APP_PEM }}{% endraw %}
|
||||||
|
|||||||
@@ -540,7 +540,7 @@ This is an example of a third-party action:
|
|||||||
|
|
||||||
```
|
```
|
||||||
steps:
|
steps:
|
||||||
- uses: google-github-actions/setup-gcloud@daadedc81d5f9d3c06d2c92f49202a3cc2b919ba
|
- uses: google-github-actions/setup-gcloud@1bee7de035d65ec5da40a31f8589e240eba8fde5
|
||||||
```
|
```
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
@@ -552,7 +552,7 @@ Code examples that use third-party actions must always pin to a full length comm
|
|||||||
|
|
||||||
```
|
```
|
||||||
steps:
|
steps:
|
||||||
- uses: google-github-actions/setup-gcloud@daadedc81d5f9d3c06d2c92f49202a3cc2b919ba
|
- uses: google-github-actions/setup-gcloud@1bee7de035d65ec5da40a31f8589e240eba8fde5
|
||||||
```
|
```
|
||||||
|
|
||||||
For GitHub Docs purposes, a third-party action is any action that doesn't have one of the following prefixes: `actions/`, `github/`, and `octo-org/`. For example, this is a first-party action:
|
For GitHub Docs purposes, a third-party action is any action that doesn't have one of the following prefixes: `actions/`, `github/`, and `octo-org/`. For example, this is a first-party action:
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ When you choose {% data reusables.actions.policy-label-for-select-actions-workfl
|
|||||||
|
|
||||||
To restrict access to specific tags or commit SHAs of an action{% ifversion actions-workflow-policy %} or reusable workflow{% endif %}, use the same syntax used in the workflow to select the action{% ifversion actions-workflow-policy %} or reusable workflow{% endif %}.
|
To restrict access to specific tags or commit SHAs of an action{% ifversion actions-workflow-policy %} or reusable workflow{% endif %}, use the same syntax used in the workflow to select the action{% ifversion actions-workflow-policy %} or reusable workflow{% endif %}.
|
||||||
|
|
||||||
- For an action, the syntax is `<OWNER>/<REPO>@<TAG OR SHA>`. For example, use `actions/javascript-action@v1.0.1` to select a tag or `actions/javascript-action@172239021f7ba04fe7327647b213799853a9eb89` to select a SHA. For more information, see "[AUTOTITLE](/actions/learn-github-actions/finding-and-customizing-actions#using-release-management-for-your-custom-actions)."
|
- For an action, the syntax is `<OWNER>/<REPO>@<TAG OR SHA>`. For example, use `actions/javascript-action@v1.0.1` to select a tag or `actions/javascript-action@a824008085750b8e136effc585c3cd6082bd575f` to select a SHA. For more information, see "[AUTOTITLE](/actions/learn-github-actions/finding-and-customizing-actions#using-release-management-for-your-custom-actions)."
|
||||||
{%- ifversion actions-workflow-policy %}
|
{%- ifversion actions-workflow-policy %}
|
||||||
- For a reusable workflow, the syntax is `<OWNER>/<REPO>/<PATH>/<FILENAME>@<TAG OR SHA>`. For example, `octo-org/another-repo/.github/workflows/workflow.yml@v1`. For more information, see "[AUTOTITLE](/actions/using-workflows/reusing-workflows#calling-a-reusable-workflow)."
|
- For a reusable workflow, the syntax is `<OWNER>/<REPO>/<PATH>/<FILENAME>@<TAG OR SHA>`. For example, `octo-org/another-repo/.github/workflows/workflow.yml@v1`. For more information, see "[AUTOTITLE](/actions/using-workflows/reusing-workflows#calling-a-reusable-workflow)."
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ jobs:
|
|||||||
uses: {% data reusables.actions.action-checkout %}
|
uses: {% data reusables.actions.action-checkout %}
|
||||||
|
|
||||||
- name: Log in to the Container registry
|
- name: Log in to the Container registry
|
||||||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
|
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
||||||
with:
|
with:
|
||||||
registry: {% raw %}${{ env.REGISTRY }}{% endraw %}
|
registry: {% raw %}${{ env.REGISTRY }}{% endraw %}
|
||||||
username: {% raw %}${{ github.actor }}{% endraw %}
|
username: {% raw %}${{ github.actor }}{% endraw %}
|
||||||
@@ -33,12 +33,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Extract metadata (tags, labels) for Docker
|
- name: Extract metadata (tags, labels) for Docker
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
|
||||||
with:
|
with:
|
||||||
images: {% raw %}${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}{% endraw %}
|
images: {% raw %}${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}{% endraw %}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
|
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
|
|||||||
Reference in New Issue
Block a user