170 搜索结果 "runs-on"
GitHub Actions / 用例和示例 / 发布包 /
发布 Docker 映像
[published]
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
attestations:
GitHub Actions / 用例和示例 / 部署 /
将 Python 部署到 Azure App Service
this to the Python version to use
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
GitHub Actions / 用例和示例 / 部署 /
将 .NET 部署到 Azure App Service
to the .NET Core version to use
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up .NET Core
GitHub Actions / 用例和示例 / 部署 /
将 Docker 部署到 Azure App Service
branches:
- main
permissions:
contents: 'read'
packages: 'write'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker
GitHub Actions / 写入工作流 / 选择工作流执行的操作 /
使用环境进行部署
production 的环境。
name: Deployment
on:
push:
branches:
- main
jobs:
deployment:
runs-on: ubuntu-latest
environment: production
steps:
- name: deploy
# ...deployment-specific
GitHub Actions / 用例和示例 / 发布包 /
使用 Maven 发布 Java 包
the Maven Central Repository
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Maven Central
GitHub Actions / 用例和示例 / 容器化服务 /
关于服务容器
job
container-job:
# Containers must run in Linux based operating systems
runs-on: ubuntu-latest
# Docker Hub image that `container-job` executes in
container:
参与编写 GitHub Docs / 为 GitHub Docs 编写内容 /
批注代码示例
Post welcome comment
# Configures the operating system the job runs on.
runs-on: ubuntu-latest
# The `run` keyword tells the job to execute a command on
GitHub Actions / 用例和示例 / 部署 /
将 PHP 部署到 Azure App Service
this to the PHP version to use
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses:
GitHub Actions / 写入工作流 / 选择工作流执行的操作 /
在变量中存储信息
day
on:
workflow_dispatch
env:
DAY_OF_WEEK: Monday
jobs:
greeting_job:
runs-on: ubuntu-latest
env:
Greeting: Hello
steps:
- name: "Say Hello Mona