Compare commits

..

7 Commits
2.2 ... master

Author SHA1 Message Date
aaffc731ee Merge pull request #2538 from Nick1200000/enhancement/docker-build
Some checks failed
CodeQL / Analyze (python) (push) Has been cancelled
Build and Push Docker Image / build (push) Has been cancelled
testing / build (ubuntu-latest, 3.10) (push) Has been cancelled
testing / build (ubuntu-latest, 3.11) (push) Has been cancelled
testing / build (ubuntu-latest, 3.12) (push) Has been cancelled
testing / build (ubuntu-latest, 3.13) (push) Has been cancelled
testing / build (ubuntu-latest, 3.8) (push) Has been cancelled
testing / build (ubuntu-latest, 3.9) (push) Has been cancelled
Add automated Docker build and publish workflow
2025-06-09 22:14:11 +02:00
5ce55aff02 Resolving the Error 2025-06-08 14:11:01 +05:30
aa1c0bb557 Resolving the Errors 2025-06-08 13:38:35 +05:30
25bc2dce57 Resolving the Errors 2025-06-08 13:30:49 +05:30
7e35d164dc Resolving the Errors 2025-06-08 13:26:40 +05:30
8666ffaff3 Resolving the Errors 2025-06-08 13:24:38 +05:30
020f6a123d Docker build CI/CD pipeline 2025-06-07 18:16:47 +05:30
3 changed files with 42 additions and 3 deletions

39
.github/workflows/docker-build.yml vendored Normal file
View File

@ -0,0 +1,39 @@
name: Build and Push Docker Image
on:
push:
branches: [ main, master, enhancement/**, dev ]
pull_request:
branches: [ main, master, enhancement/**, dev ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GH_TOKEN }}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: docker.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push to GitHub Container Registry
run: |
docker build -t ghcr.io/$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]'):latest .
docker push ghcr.io/$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]'):latest
- name: Build and push to Docker Hub
run: |
docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}:latest .
docker push ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}:latest

View File

@ -27,7 +27,7 @@ BASE_TEMPLATE_PROPERTIES = {
},
"template_type": {
"description": "Type of node",
"enum": ["cloud", "nat", "ethernet_hub", "ethernet_switch", "docker", "dynamips", "vpcs", "traceng",
"enum": ["cloud", "ethernet_hub", "ethernet_switch", "docker", "dynamips", "vpcs", "traceng",
"virtualbox", "vmware", "iou", "qemu"]
},
"name": {

View File

@ -23,8 +23,8 @@
# or negative for a release candidate or beta (after the base version
# number has been incremented)
__version__ = "2.2.55.dev1"
__version_info__ = (2, 2, 54, 99)
__version__ = "2.2.54"
__version_info__ = (2, 2, 54, 0)
if "dev" in __version__:
try: