-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #874 from stratosphereips/develop
Slips v1.1
- Loading branch information
Showing
143 changed files
with
22,714 additions
and
20,227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: CI-production-publishing-dependency-image | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
- '!develop' | ||
|
||
jobs: | ||
build_and_push_dependency_image: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# clone slips and checkout branch | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: 'master' | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: stratosphereips | ||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | ||
|
||
- name: Build and push latest dependency image | ||
id: docker_build_dependency_image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./ | ||
file: ./docker/dependency-image/Dockerfile | ||
tags: stratosphereips/slips_dependencies:latest | ||
push: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: CI-production-publishing-p2p-image | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
- '!develop' | ||
|
||
jobs: | ||
publish_P2P_docker_image: | ||
# runs the tests in a docker(built by this job) on stop of a GH VM | ||
runs-on: ubuntu-20.04 | ||
# 2 hours timeout | ||
timeout-minutes: 7200 | ||
|
||
steps: | ||
- name: Get slips version | ||
run: | | ||
VER=$(curl -s https://raw.githubusercontent.com/stratosphereips/StratosphereLinuxIPS/develop/VERSION) | ||
echo "SLIPS_VERSION=$VER" >> $GITHUB_ENV | ||
# clone slips and checkout branch | ||
# By default it checks out only one commit | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: 'master' | ||
# Fetch all history for all tags and branches | ||
fetch-depth: '' | ||
submodules: true | ||
|
||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: stratosphereips | ||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | ||
|
||
# Set up Docker Buildx with docker-container driver is required | ||
# at the moment to be able to use a subdirectory with Git context | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Build and push p2p image using dockerfile | ||
id: docker_build_p2p_for_slips | ||
uses: docker/build-push-action@v3 | ||
with: | ||
allow: network.host | ||
context: ./ | ||
file: ./docker/P2P-image/Dockerfile | ||
tags: | | ||
stratosphereips/slips_p2p:latest | ||
stratosphereips/slips_p2p:${{ env.SLIPS_VERSION }} | ||
push: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: CI-production-publishing-ubuntu-image | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
- '!develop' | ||
|
||
jobs: | ||
create_release_tag: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Get slips version | ||
run: | | ||
VER=$(curl -s https://raw.githubusercontent.com/stratosphereips/StratosphereLinuxIPS/develop/VERSION) | ||
echo "SLIPS_VERSION=$VER" >> $GITHUB_ENV | ||
# add release tag | ||
- uses: actions/checkout@v3 | ||
- uses: rickstaa/action-create-tag@v1 | ||
with: | ||
tag: ${{ env.SLIPS_VERSION }} | ||
message: "" | ||
|
||
publish_ubuntu_image: | ||
# runs the tests in a docker(built by this job) on top of a GH VM | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Get Slips version | ||
run: | | ||
VER=$(curl -s https://raw.githubusercontent.com/stratosphereips/StratosphereLinuxIPS/develop/VERSION) | ||
echo "SLIPS_VERSION=$VER" >> $GITHUB_ENV | ||
# clone slips and checkout branch | ||
# By default it checks out only one commit | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: 'master' | ||
# Fetch all history for all tags and branches | ||
fetch-depth: '' | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: stratosphereips | ||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | ||
|
||
- name: Build and publish ubuntu image from Dockerfile | ||
id: docker_build_slips | ||
timeout-minutes: 15 | ||
uses: docker/build-push-action@v5 | ||
with: | ||
debug: true | ||
verbose-debug: true | ||
no-cache: true | ||
context: ./ | ||
file: ./docker/ubuntu-image/Dockerfile | ||
tags: | | ||
stratosphereips/ubuntu_image:latest | ||
stratosphereips/ubuntu_image:${{ env.SLIPS_VERSION }} | ||
push: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: CI-production-update-code-docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
- '!develop' | ||
|
||
jobs: | ||
update_code_docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: 'code-docs-branch' | ||
fetch-depth: 0 # otherwise, you will fail to push refs to the dest repo | ||
|
||
- name: install doxygen and python | ||
run: | | ||
sudo apt update | ||
sudo apt install python3 doxygen | ||
# deletes old docs, generates new ones, and adds all new files to git | ||
- name: update docs | ||
run: python3 docs/generate_docs.py | ||
|
||
# commit and push to code docs branch | ||
- name: Commit & Push changes | ||
uses: actions-js/push@master | ||
with: | ||
github_token: ${{ secrets.GH_TOKEN_FOR_COMMITTING_AND_PUSHING_CODE_DOCS }} | ||
message: '[Github actions] Update code docs' | ||
branch: 'code-docs-branch' |
Oops, something went wrong.