Giter Site home page Giter Site logo

beachmachine / go.anx.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anexia/go.anx.io

0.0 1.0 0.0 502 KB

Generated website for our Go vanity URLs

Home Page: https://go.anx.io

License: MIT License

Python 4.18% Go 76.01% CSS 18.32% Makefile 1.50%

go.anx.io's Introduction

go.anx.io

This repository holds the templates and configuration for our go vanity URL website at go.anx.io.

Usage

  • add your package to packages.yaml, optionally overriding targetName and summary
  • add a GitHub actions workflow to trigger updates when code is pushed to your repository
  • be sure your go.mod uses the correct import path go.anx.io/$targetName
  • profit :)

You can look at anexia-it/go-anxcloud#96 for an example what to do, there is also a handy sed in the comments to change import paths over the whole repository.

# anexia-it/go.anx.io/packages.yaml

# This package can be imported as go.anx.io/awesomeLibrary
- source:     https://github.com/anexia-it/go-awesome-library.git
  targetName: awesomeLibrary
  summary:    This library does some really awesome things

# This package can be imported as go.anx.io/go-boring-library
- source:     https://github.com/anexia-it/go-boring-library.git

targetName defaults to the last part of the URL without the .git, summary to the first top-level header in README.md on the default branch.

Add this as a new workflow or add the job trigger to one of your existing workflows. You can also modify it to run after your tests went through. Make sure to run it for both branches and tags.

# anexia-it/go-awesome-library/.github/workflows/push.yaml

name: Trigger go.anx.io update
on:
  push:

jobs:
  trigger:
    name:    Trigger go.anx.io update
    runs-on: ubuntu-latest
    steps:
    - uses: anexia-it/go.anx.io@main
      env:
        GOANXIO_E5E_TOKEN: "${{ secrets.GOANXIO_E5E_TOKEN }}"

The update trigger

Triggering workflows in a repository from another repositories workflow needs a personal access token (PATs) to create a repository_dispatch event, which workflows can be triggered on. Since those PATs are powerful and we want as less config as possible in each library (so not adding this token to every libraries settings), we use an E5E function to do the actual GitHub API call. This way we have that token securely in our own infrastructure in a piece of code that can only trigger this specific API.

The E5E function is "System Engineering / github-dispatch / Trigger go.anx.io rebuild" and called via Frontier "System Engineering / github-dispatch / trigger go.anx.io rebuild".

Contributing

Contributions are welcome! Read the Contributing Guide for more information.

Only packages by Anexia will be published on go.anx.io, though.

Licensing

See LICENSE for more information.

go.anx.io's People

Contributors

beachmachine avatar dependabot[bot] avatar littlefox94 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.