github-repo-scaffolding-golang Plugin

    This plugin depends on the following environment variable:

    • GITHUB_TOKEN

    Set it before using this plugin.

    If you don’t know how to create this token, check out: - Creating a personal access token

    1. If you run , the repo on GitHub will be completely removed.

    2. If the Update interface is called, the repo on github will be completely removed and recreated. However, given our current implementation, this interface shall not be called, as of in v0.2.0.

    Please note that the owner parameter is case-sensitive.

    • YOUR_GITHUB_USERNAME
    • YOUR_ORGANIZATION_NAME
    • YOUR_REPO_NAME
    • YOUR_DOCKERHUB_USERNAME
    • YOUR_DOCKERHUB_REPOSITORY

    The “branch” in the example above is “main”, but you can adjust accordingly.

    Currently, all the parameters in the example above are mandatory.

    Outputs

    This plugin has three outputs:

    1. ---
    2. plugin: github-repo-scaffolding-golang
    3. options:
    4. owner: YOUR_GITHUB_USERNAME
    5. repo: YOUR_REPO_NAME
    6. branch: main
    7. image_repo: YOUR_DOCKERHUB_REPOSITORY
    8. - name: golang-demo-actions
    9. plugin: githubactions-golang
    10. dependsOn: ["go-webapp-repo.github-repo-scaffolding-golang"]
    11. options:
    12. owner: ${{go-webapp-repo.github-repo-scaffolding-golang.outputs.owner}}
    13. name: go
    14. version: "1.17"
    15. branch: main
    16. build:
    17. enable: True
    18. test:
    19. enable: True
    20. coverage:
    21. enable: True
    22. docker:
    23. enable: False

    Pay attention to the ${{ xxx }} part in the example. is the syntax for using an output.