Merge pull request #15 from actions/JenniferKerns-patch-2
copyedits to configure lab
This commit is contained in:
+40
-40
@@ -13,58 +13,58 @@ You will need to complete all of the setup instructions [here](./readme.md#confi
|
|||||||
```
|
```
|
||||||
|
|
||||||
2. Open the GitLab server in a new browser tab:
|
2. Open the GitLab server in a new browser tab:
|
||||||
- Click the `PORTS` tab in the codespace terminal window.
|
- Click the `PORTS` tab in the codespace terminal window.
|
||||||
- In the `PORTS` tab find the row for port 80.
|
- In the `PORTS` tab find the row for port 80.
|
||||||
- Hover over the address under the `Local Address` column and click the globe to "open in browser".
|
- Hover over the address under the `Local Address` column and click the globe to "open in browser".
|
||||||
|
|
||||||
3. Create a GitLab personal access token (PAT):
|
3. Create a GitLab personal access token (PAT):
|
||||||
- Authenticate with the GitLab server using the following credentials:
|
- Authenticate with the GitLab server using the following credentials:
|
||||||
- Username: `root`
|
- Username: `root`
|
||||||
- Password: `actions-importer-labs!`
|
- Password: `actions-importer-labs!`
|
||||||
- Follow the GitLab [instructions](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#create-a-personal-access-token) to generate a PAT.
|
- Follow the GitLab [instructions](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#create-a-personal-access-token) to generate a PAT.
|
||||||
- Ensure the token has the `read_api` scope.
|
- Ensure the token has the `read_api` scope.
|
||||||
- Copy the generated token and save it in a safe location.
|
- Copy the generated token and save it in a safe location.
|
||||||
|
|
||||||
4. Create a GitHub personal access token (PAT):
|
4. Create a GitHub personal access token (PAT):
|
||||||
- Open github.com in a new browser tab.
|
- Open github.com in a new browser tab.
|
||||||
- In the top right corner of the UI, click your profile photo and click `Settings`.
|
- In the top right corner of the UI, click your profile photo and then click `Settings`.
|
||||||
- In the left panel, click `Developer Settings`.
|
- In the left panel, click `Developer Settings`.
|
||||||
- Click `Personal access tokens` and then `Legacy tokens` (if present).
|
- Click `Personal access tokens` and then `Tokens (classic)` (if present).
|
||||||
- Click `Generate new token` and then `Generate new legacy token`. You may be required to authenticate with GitHub during this step.
|
- Click `Generate new token` and then `Generate new token (classic)`. You may be required to authenticate with GitHub during this step.
|
||||||
- Name your token in the `Note` field.
|
- Name your token in the `Note` field.
|
||||||
- Select the following scopes: `workflow` and `read:packages`.
|
- Select the following scopes: `workflow` and `read:packages`.
|
||||||
- Click `Generate token`.
|
- Click `Generate token`.
|
||||||
- Copy the generated PAT and save it in a safe location.
|
- Copy the generated PAT and save it in a safe location.
|
||||||
|
|
||||||
5. Run the `configure` CLI command:
|
5. Run the `configure` CLI command:
|
||||||
- Select the `TERMINAL` tab from within the codespace terminal window.
|
- Select the `TERMINAL` tab from within the codespace terminal window.
|
||||||
- Run the following command: `gh actions-importer configure`.
|
- Run the following command: `gh actions-importer configure`.
|
||||||
- Use the down arrow key to highlight `GitLab`, press the spacebar to select, and then press enter to continue.
|
- Use the down arrow key to highlight `GitLab`, press the spacebar to select, and then press enter to continue.
|
||||||
- At the GitHub handle prompt, enter the GitHub handle used to generate the GitHub PAT in step 2 and press enter.
|
- At the GitHub handle prompt, enter the GitHub handle used to generate the GitHub PAT in step 2 and press enter.
|
||||||
- At the GitHub Container Registry prompt, enter the GitHub PAT generated in step 4 and press enter.
|
- At the GitHub Container Registry prompt, enter the GitHub PAT generated in step 4 and press enter.
|
||||||
- At the GitHub PAT prompt, enter the GitHub PAT generated in step 4 and press enter.
|
- At the GitHub PAT prompt, enter the GitHub PAT generated in step 4 and press enter.
|
||||||
- At the GitHub URL prompt, enter the GitHub instance URL or press enter to accept the default value (`https://github.com`).
|
- At the GitHub URL prompt, enter the GitHub instance URL or press enter to accept the default value (`https://github.com`).
|
||||||
- At the GitLab token prompt, enter the GitLab access token from step 3 and press enter.
|
- At the GitLab token prompt, enter the GitLab access token from step 3 and press enter.
|
||||||
- At the GitLab URL prompt, enter `http://localhost` and press enter.
|
- At the GitLab URL prompt, enter `http://localhost` and press enter.
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ gh actions-importer configure
|
$ gh actions-importer configure
|
||||||
✔ Which CI providers are you configuring?: GitLab
|
✔ Which CI providers are you configuring?: GitLab
|
||||||
Enter the following values (leave empty to omit):
|
Enter the following values (leave empty to omit):
|
||||||
✔ GitHub handle used to authenticate with the GitHub Container Registry: mona
|
✔ GitHub handle used to authenticate with the GitHub Container Registry: mona
|
||||||
✔ Personal access token to authenticate with the GitHub Container Registry: ***************
|
✔ Personal access token to authenticate with the GitHub Container Registry: ***************
|
||||||
✔ Personal access token for GitHub: ***************
|
✔ Personal access token for GitHub: ***************
|
||||||
✔ Base url of the GitHub instance: https://github.com
|
✔ Base url of the GitHub instance: https://github.com
|
||||||
✔ Private token for GitLab: ***************
|
✔ Private token for GitLab: ***************
|
||||||
✔ Base url of the GitLab instance: http://localhost
|
✔ Base url of the GitLab instance: http://localhost
|
||||||
Environment variables successfully updated.
|
Environment variables successfully updated.
|
||||||
```
|
```
|
||||||
|
|
||||||
## Verify your environment
|
## Verify your environment
|
||||||
|
|
||||||
To verify your environment is configured correctly, run the `update` CLI command. The `update` CLI command will download the latest version of GitHub Actions Importer to your codespace.
|
To verify your environment is configured correctly, run the `update` CLI command. The `update` CLI command will download the latest version of GitHub Actions Importer to your codespace.
|
||||||
|
|
||||||
1. In the codespace terminal run the following command:
|
1. In the codespace terminal, run the following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
gh actions-importer update
|
gh actions-importer update
|
||||||
|
|||||||
Reference in New Issue
Block a user