| | |
| | | uses: docker/login-action@v4 |
| | | with: |
| | | registry: ghcr.io |
| | | username: ${{ github.actor }} |
| | | username: ${{ github.repository_owner }} |
| | | password: ${{ secrets.GITHUB_TOKEN }} |
| | | |
| | | - name: Prepare and push Docker plugin |
| | |
| | | - name: Login to Docker Hub |
| | | uses: docker/login-action@v4 |
| | | with: |
| | | username: ${{ github.actor }} |
| | | username: ${{ github.repository_owner }} |
| | | password: ${{ secrets.DOCKER_PASSWORD }} |
| | | |
| | | - name: Prepare and push Docker plugin |
| | | run: | |
| | | export NAME="${{ github.actor }}/pyveth" |
| | | export NAME="${{ github.repository_owner }}/pyveth" |
| | | export VERSIONS="latest ${GITHUB_REF/refs\/tags\//}" |
| | | ./package.sh |
| | |
| | | return ''.join([random.choice(chars) for _ in range(size)]) |
| | | |
| | | |
| | | def create_interface(endpoint, network) -> str: |
| | | def create_interface(endpoint, network) -> tuple[str, str]: |
| | | ifname0 = 'veth{}'.format(genid()) |
| | | ifname1 = 'veth{}'.format(genid()) |
| | | |
| | |
| | | |
| | | |
| | | endpoints: Dict[str, EndpointCreateEntity] = {} |
| | | |
| | | |
| | | __all__ = ['endpoints', 'networks', 'networks_sync'] |