Remove redundant versioning (#55511)
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com>
This commit is contained in:
@@ -12,7 +12,7 @@ redirect_from:
|
|||||||
- /actions/creating-actions/sharing-actions-and-workflows-with-your-organization
|
- /actions/creating-actions/sharing-actions-and-workflows-with-your-organization
|
||||||
---
|
---
|
||||||
|
|
||||||
## About {% data variables.product.prodname_actions %} access to private {% ifversion ghec or ghes %} or internal {% endif %}repositories
|
## About {% data variables.product.prodname_actions %} access to private repositories
|
||||||
|
|
||||||
You can share actions and reusable workflows within your organization, without publishing them publicly, by allowing {% data variables.product.prodname_actions %} workflows to access a private repository that contains the action or reusable workflow.
|
You can share actions and reusable workflows within your organization, without publishing them publicly, by allowing {% data variables.product.prodname_actions %} workflows to access a private repository that contains the action or reusable workflow.
|
||||||
|
|
||||||
@@ -24,7 +24,7 @@ Any actions or reusable workflows stored in the private repository can be used i
|
|||||||
|
|
||||||
## Sharing actions and workflows with your organization
|
## Sharing actions and workflows with your organization
|
||||||
|
|
||||||
1. Store the action or reusable workflow in a private {% ifversion ghec or ghes %} or internal {% endif %}repository. For more information, see [AUTOTITLE](/repositories/creating-and-managing-repositories/about-repositories#about-repository-visibility).
|
1. Store the action or reusable workflow in a private repository. For more information, see [AUTOTITLE](/repositories/creating-and-managing-repositories/about-repositories#about-repository-visibility).
|
||||||
1. Configure the repository to allow access to workflows in other private repositories. For more information, see [AUTOTITLE](/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-a-private-repository).
|
1. Configure the repository to allow access to workflows in other private repositories. For more information, see [AUTOTITLE](/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-a-private-repository).
|
||||||
|
|
||||||
## Further reading
|
## Further reading
|
||||||
|
|||||||
@@ -20,12 +20,6 @@ redirect_from:
|
|||||||
- /copilot/github-copilot-enterprise/copilot-docset-management/about-copilot-docset-management
|
- /copilot/github-copilot-enterprise/copilot-docset-management/about-copilot-docset-management
|
||||||
---
|
---
|
||||||
|
|
||||||
{% ifversion fpt %}
|
|
||||||
|
|
||||||
{% data reusables.rai.copilot.enterprise-fpt-link %}
|
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
## About knowledge bases
|
## About knowledge bases
|
||||||
|
|
||||||
Organization owners can create knowledge bases, bringing together Markdown documentation across one or more repositories. Organization members can then specify that knowledge base as the context for {% data variables.product.prodname_copilot_chat_dotcom_short %}, {% data variables.product.prodname_copilot_chat_short %} in {% data variables.product.prodname_vscode %}, and {% data variables.product.prodname_copilot_chat_short %} in {% data variables.product.prodname_vs %}.
|
Organization owners can create knowledge bases, bringing together Markdown documentation across one or more repositories. Organization members can then specify that knowledge base as the context for {% data variables.product.prodname_copilot_chat_dotcom_short %}, {% data variables.product.prodname_copilot_chat_short %} in {% data variables.product.prodname_vscode %}, and {% data variables.product.prodname_copilot_chat_short %} in {% data variables.product.prodname_vs %}.
|
||||||
|
|||||||
@@ -12,4 +12,4 @@ autogenerated: graphql
|
|||||||
|
|
||||||
Breaking changes include changes that will break existing queries or could affect the runtime behavior of clients. For a list of breaking changes and when they will occur, see our [breaking changes log](/graphql/overview/breaking-changes).
|
Breaking changes include changes that will break existing queries or could affect the runtime behavior of clients. For a list of breaking changes and when they will occur, see our [breaking changes log](/graphql/overview/breaking-changes).
|
||||||
|
|
||||||
<!-- Content after this section is automatically generated -->
|
<!-- Content after this section is automatically generated -->
|
||||||
|
|||||||
@@ -93,5 +93,4 @@ permissions: Site administrators can use the administrative shell to import data
|
|||||||
|
|
||||||
## Further reading
|
## Further reading
|
||||||
|
|
||||||
* [AUTOTITLE](/admin/configuration/configuring-your-enterprise/command-line-utilities#import-and-export){% ifversion fpt or ghec %}
|
* [AUTOTITLE](/admin/configuration/configuring-your-enterprise/command-line-utilities#import-and-export)
|
||||||
* [AUTOTITLE](/get-started/using-git/troubleshooting-the-2-gb-push-limit){% endif %}
|
|
||||||
|
|||||||
@@ -50,20 +50,8 @@ You can authenticate to {% data variables.product.prodname_registry %} with Dock
|
|||||||
|
|
||||||
To keep your credentials secure, we recommend you save your {% data variables.product.pat_generic %} in a local file on your computer and use Docker's `--password-stdin` flag, which reads your token from a local file.
|
To keep your credentials secure, we recommend you save your {% data variables.product.pat_generic %} in a local file on your computer and use Docker's `--password-stdin` flag, which reads your token from a local file.
|
||||||
|
|
||||||
{% ifversion fpt or ghec %}
|
|
||||||
{% raw %}
|
|
||||||
|
|
||||||
```shell
|
|
||||||
cat ~/TOKEN.txt | docker login https://docker.pkg.github.com -u USERNAME --password-stdin
|
|
||||||
```
|
|
||||||
|
|
||||||
{% endraw %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% ifversion ghes %}
|
|
||||||
{% ifversion ghes %}
|
|
||||||
If your instance has subdomain isolation enabled:
|
If your instance has subdomain isolation enabled:
|
||||||
{% endif %}
|
|
||||||
{% raw %}
|
{% raw %}
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
@@ -71,7 +59,7 @@ cat ~/TOKEN.txt | docker login docker.HOSTNAME -u USERNAME --password-stdin
|
|||||||
```
|
```
|
||||||
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
{% ifversion ghes %}
|
|
||||||
If your instance has subdomain isolation disabled:
|
If your instance has subdomain isolation disabled:
|
||||||
|
|
||||||
{% raw %}
|
{% raw %}
|
||||||
@@ -81,11 +69,8 @@ cat ~/TOKEN.txt | docker login HOSTNAME -u USERNAME --password-stdin
|
|||||||
```
|
```
|
||||||
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% endif %}
|
To use this example login command, replace `USERNAME` with your {% data variables.product.github %} username, `HOSTNAME` with the URL for {% data variables.location.product_location %}, and `~/TOKEN.txt` with the file path to your {% data variables.product.pat_generic %} for {% data variables.product.github %}.
|
||||||
|
|
||||||
To use this example login command, replace `USERNAME` with your {% data variables.product.github %} username{% ifversion ghes %}, `HOSTNAME` with the URL for {% data variables.location.product_location %},{% endif %} and `~/TOKEN.txt` with the file path to your {% data variables.product.pat_generic %} for {% data variables.product.github %}.
|
|
||||||
|
|
||||||
For more information, see [Docker login](https://docs.docker.com/engine/reference/commandline/login/#provide-a-password-using-stdin).
|
For more information, see [Docker login](https://docs.docker.com/engine/reference/commandline/login/#provide-a-password-using-stdin).
|
||||||
|
|
||||||
@@ -109,110 +94,61 @@ For more information, see [Docker login](https://docs.docker.com/engine/referenc
|
|||||||
> IMAGE_NAME VERSION IMAGE_ID 4 weeks ago 1.11MB
|
> IMAGE_NAME VERSION IMAGE_ID 4 weeks ago 1.11MB
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Using the Docker image ID, tag the docker image, replacing OWNER with the name of the personal account or organization that owns the repository, REPOSITORY with the name of the repository containing your project, IMAGE_NAME with name of the package or image,{% ifversion ghes %} HOSTNAME with the hostname of {% data variables.location.product_location %},{% endif %} and VERSION with package version at build time.
|
1. Using the Docker image ID, tag the Docker image, replacing OWNER with the name of the personal account or organization that owns the repository, REPOSITORY with the name of the repository containing your project, IMAGE_NAME with name of the package or image, HOSTNAME with the hostname of {% data variables.location.product_location %}, and VERSION with package version at build time.
|
||||||
{% ifversion fpt or ghec %}
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker tag IMAGE_ID docker.pkg.github.com/OWNER/REPOSITORY/IMAGE_NAME:VERSION
|
docker tag IMAGE_ID docker.pkg.github.com/OWNER/REPOSITORY/IMAGE_NAME:VERSION
|
||||||
```
|
```
|
||||||
|
|
||||||
{% else %}
|
|
||||||
{% ifversion ghes %}
|
|
||||||
If your instance has subdomain isolation enabled:
|
If your instance has subdomain isolation enabled:
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker tag IMAGE_ID docker.HOSTNAME/OWNER/REPOSITORY/IMAGE_NAME:VERSION
|
docker tag IMAGE_ID docker.HOSTNAME/OWNER/REPOSITORY/IMAGE_NAME:VERSION
|
||||||
```
|
```
|
||||||
|
|
||||||
{% ifversion ghes %}
|
|
||||||
If your instance has subdomain isolation disabled:
|
If your instance has subdomain isolation disabled:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker tag IMAGE_ID HOSTNAME/OWNER/REPOSITORY/IMAGE_NAME:VERSION
|
docker tag IMAGE_ID HOSTNAME/OWNER/REPOSITORY/IMAGE_NAME:VERSION
|
||||||
```
|
```
|
||||||
|
|
||||||
{% endif %}
|
1. If you haven't already built a Docker image for the package, build the image, replacing OWNER with the name of the personal account or organization that owns the repository, REPOSITORY with the name of the repository containing your project, IMAGE_NAME with name of the package or image, VERSION with package version at build time, HOSTNAME with the hostname of {% data variables.location.product_location %}, and PATH to the image if it isn't in the current working directory.
|
||||||
{% endif %}
|
|
||||||
1. If you haven't already built a docker image for the package, build the image, replacing OWNER with the name of the personal account or organization that owns the repository, REPOSITORY with the name of the repository containing your project, IMAGE_NAME with name of the package or image, VERSION with package version at build time,{% ifversion ghes %} HOSTNAME with the hostname of {% data variables.location.product_location %},{% endif %} and PATH to the image if it isn't in the current working directory.
|
|
||||||
{% ifversion fpt or ghec %}
|
|
||||||
|
|
||||||
```shell
|
|
||||||
docker build -t docker.pkg.github.com/OWNER/REPOSITORY/IMAGE_NAME:VERSION PATH
|
|
||||||
```
|
|
||||||
|
|
||||||
{% else %}
|
|
||||||
{% ifversion ghes %}
|
|
||||||
If your instance has subdomain isolation enabled:
|
If your instance has subdomain isolation enabled:
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker build -t docker.HOSTNAME/OWNER/REPOSITORY/IMAGE_NAME:VERSION PATH
|
docker build -t docker.HOSTNAME/OWNER/REPOSITORY/IMAGE_NAME:VERSION PATH
|
||||||
```
|
```
|
||||||
|
|
||||||
{% ifversion ghes %}
|
|
||||||
If your instance has subdomain isolation disabled:
|
If your instance has subdomain isolation disabled:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker build -t HOSTNAME/OWNER/REPOSITORY/IMAGE_NAME:VERSION PATH
|
docker build -t HOSTNAME/OWNER/REPOSITORY/IMAGE_NAME:VERSION PATH
|
||||||
```
|
```
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
1. Publish the image to {% data variables.product.prodname_registry %}.
|
1. Publish the image to {% data variables.product.prodname_registry %}.
|
||||||
{% ifversion fpt or ghec %}
|
|
||||||
|
|
||||||
```shell
|
|
||||||
docker push docker.pkg.github.com/OWNER/REPOSITORY/IMAGE_NAME:VERSION
|
|
||||||
```
|
|
||||||
|
|
||||||
{% else %}
|
|
||||||
{% ifversion ghes %}
|
|
||||||
If your instance has subdomain isolation enabled:
|
If your instance has subdomain isolation enabled:
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker push docker.HOSTNAME/OWNER/REPOSITORY/IMAGE_NAME:VERSION
|
docker push docker.HOSTNAME/OWNER/REPOSITORY/IMAGE_NAME:VERSION
|
||||||
```
|
```
|
||||||
|
|
||||||
{% ifversion ghes %}
|
|
||||||
If your instance has subdomain isolation disabled:
|
If your instance has subdomain isolation disabled:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker push HOSTNAME/OWNER/REPOSITORY/IMAGE_NAME:VERSION
|
docker push HOSTNAME/OWNER/REPOSITORY/IMAGE_NAME:VERSION
|
||||||
```
|
```
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> You must push your image using `IMAGE_NAME:VERSION` and not using `IMAGE_NAME:SHA`.
|
> You must push your image using `IMAGE_NAME:VERSION` and not using `IMAGE_NAME:SHA`.
|
||||||
|
|
||||||
### Example publishing a Docker image
|
### Example publishing a Docker image
|
||||||
|
|
||||||
{% ifversion ghes %}
|
|
||||||
These examples assume your instance has subdomain isolation enabled.
|
These examples assume your instance has subdomain isolation enabled.
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
You can publish version 1.0 of the `monalisa` image to the `octocat/octo-app` repository using an image ID.
|
You can publish version 1.0 of the `monalisa` image to the `octocat/octo-app` repository using an image ID.
|
||||||
|
|
||||||
{% ifversion fpt or ghec %}
|
|
||||||
|
|
||||||
```shell
|
|
||||||
$ docker images
|
|
||||||
|
|
||||||
> REPOSITORY TAG IMAGE ID CREATED SIZE
|
|
||||||
> monalisa 1.0 c75bebcdd211 4 weeks ago 1.11MB
|
|
||||||
|
|
||||||
# Tag the image with OWNER/REPO/IMAGE_NAME
|
|
||||||
$ docker tag c75bebcdd211 docker.pkg.github.com/octocat/octo-app/monalisa:1.0
|
|
||||||
|
|
||||||
# Push the image to {% data variables.product.prodname_registry %}
|
|
||||||
$ docker push docker.pkg.github.com/octocat/octo-app/monalisa:1.0
|
|
||||||
```
|
|
||||||
|
|
||||||
{% else %}
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ docker images
|
$ docker images
|
||||||
|
|
||||||
@@ -226,23 +162,8 @@ $ docker tag c75bebcdd211 docker.HOSTNAME/octocat/octo-app/monalisa:1.0
|
|||||||
$ docker push docker.HOSTNAME/octocat/octo-app/monalisa:1.0
|
$ docker push docker.HOSTNAME/octocat/octo-app/monalisa:1.0
|
||||||
```
|
```
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
You can publish a new Docker image for the first time and name it `monalisa`.
|
You can publish a new Docker image for the first time and name it `monalisa`.
|
||||||
|
|
||||||
{% ifversion fpt or ghec %}
|
|
||||||
|
|
||||||
```shell
|
|
||||||
# Build the image with docker.pkg.github.com/OWNER/REPOSITORY/IMAGE_NAME:VERSION
|
|
||||||
# Assumes Dockerfile resides in the current working directory (.)
|
|
||||||
$ docker build -t docker.pkg.github.com/octocat/octo-app/monalisa:1.0 .
|
|
||||||
|
|
||||||
# Push the image to {% data variables.product.prodname_registry %}
|
|
||||||
$ docker push docker.pkg.github.com/octocat/octo-app/monalisa:1.0
|
|
||||||
```
|
|
||||||
|
|
||||||
{% else %}
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# Build the image with docker.HOSTNAME/OWNER/REPOSITORY/IMAGE_NAME:VERSION
|
# Build the image with docker.HOSTNAME/OWNER/REPOSITORY/IMAGE_NAME:VERSION
|
||||||
# Assumes Dockerfile resides in the current working directory (.)
|
# Assumes Dockerfile resides in the current working directory (.)
|
||||||
@@ -252,40 +173,24 @@ $ docker build -t docker.HOSTNAME/octocat/octo-app/monalisa:1.0 .
|
|||||||
$ docker push docker.HOSTNAME/octocat/octo-app/monalisa:1.0
|
$ docker push docker.HOSTNAME/octocat/octo-app/monalisa:1.0
|
||||||
```
|
```
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
## Downloading an image
|
## Downloading an image
|
||||||
|
|
||||||
{% data reusables.package_registry.docker_registry_deprecation_status %}
|
{% data reusables.package_registry.docker_registry_deprecation_status %}
|
||||||
|
|
||||||
You can use the `docker pull` command to install a docker image from {% data variables.product.prodname_registry %}, replacing OWNER with the name of the personal account or organization that owns the repository, REPOSITORY with the name of the repository containing your project, IMAGE_NAME with name of the package or image,{% ifversion ghes %} HOSTNAME with the host name of {% data variables.location.product_location %}, {% endif %} and TAG_NAME with tag for the image you want to install.
|
You can use the `docker pull` command to install a docker image from {% data variables.product.prodname_registry %}, replacing OWNER with the name of the personal account or organization that owns the repository, REPOSITORY with the name of the repository containing your project, IMAGE_NAME with name of the package or image, HOSTNAME with the host name of {% data variables.location.product_location %}, and TAG_NAME with tag for the image you want to install.
|
||||||
|
|
||||||
{% ifversion fpt or ghec %}
|
|
||||||
|
|
||||||
```shell
|
|
||||||
docker pull docker.pkg.github.com/OWNER/REPOSITORY/IMAGE_NAME:TAG_NAME
|
|
||||||
```
|
|
||||||
|
|
||||||
{% else %}
|
|
||||||
<!--Versioning out this "subdomain isolation enabled" line because it's the only option for GHES 2.22 so it can be misleading.-->
|
|
||||||
{% ifversion ghes %}
|
|
||||||
If your instance has subdomain isolation enabled:
|
If your instance has subdomain isolation enabled:
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker pull docker.HOSTNAME/OWNER/REPOSITORY/IMAGE_NAME:TAG_NAME
|
docker pull docker.HOSTNAME/OWNER/REPOSITORY/IMAGE_NAME:TAG_NAME
|
||||||
```
|
```
|
||||||
|
|
||||||
{% ifversion ghes %}
|
|
||||||
If your instance has subdomain isolation disabled:
|
If your instance has subdomain isolation disabled:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker pull HOSTNAME/OWNER/REPOSITORY/IMAGE_NAME:TAG_NAME
|
docker pull HOSTNAME/OWNER/REPOSITORY/IMAGE_NAME:TAG_NAME
|
||||||
```
|
```
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> You must pull the image using `IMAGE_NAME:VERSION` and not using `IMAGE_NAME:SHA`.
|
> You must pull the image using `IMAGE_NAME:VERSION` and not using `IMAGE_NAME:SHA`.
|
||||||
|
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ To use GitHub Copilot in your code editor, you need to install the GitHub Copilo
|
|||||||
|
|
||||||
If you customize GitHub Copilot, to include using a GitHub Copilot Extension (Extension), your use may be subject to the terms of use and privacy policy applicable to the customization.
|
If you customize GitHub Copilot, to include using a GitHub Copilot Extension (Extension), your use may be subject to the terms of use and privacy policy applicable to the customization.
|
||||||
|
|
||||||
The code you write using GitHub Copilot is not “Content” under the Agreement until you upload it to GitHub.com{% ifversion ghec %} or GHE.com{% endif %}. The code, functions, and other output returned to you by GitHub Copilot are called “**Suggestions**.” GitHub does not own Suggestions. You retain ownership of Your Code and you retain responsibility for Suggestions you include in Your Code. It is entirely your decision whether to use Suggestions generated by GitHub Copilot. If you use Suggestions, GitHub strongly recommends that you have reasonable policies and practices in place designed to prevent the use of a Suggestion in a way that may violate the rights of others.
|
The code you write using GitHub Copilot is not “Content” under the Agreement until you upload it to GitHub.com. The code, functions, and other output returned to you by GitHub Copilot are called “**Suggestions**.” GitHub does not own Suggestions. You retain ownership of Your Code and you retain responsibility for Suggestions you include in Your Code. It is entirely your decision whether to use Suggestions generated by GitHub Copilot. If you use Suggestions, GitHub strongly recommends that you have reasonable policies and practices in place designed to prevent the use of a Suggestion in a way that may violate the rights of others.
|
||||||
|
|
||||||
_Acceptable Use_
|
_Acceptable Use_
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user