-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
115 additions
and
167 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.ansible | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
|
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,24 @@ | ||
{ | ||
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558 | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "shell", | ||
"command": "ansible-vault encrypt vars/vault.yaml --vault-password-file .ansible/vault_key", | ||
"label": "Encrypt vault", | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"type": "shell", | ||
"command": "ansible-vault decrypt vars/vault.yaml --vault-password-file .ansible/vault_key", | ||
"label": "Decrypt vault", | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"type": "shell", | ||
"command": "ansible-vault view vars/vault.yaml --vault-password-file .ansible/vault_key", | ||
"label": "view vault", | ||
"problemMatcher": [] | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
- add NPN publishibg support | ||
- add GitHub pages support | ||
- add NPN publishibg support https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages#publishing-packages-to-the-npm-registry |
This file was deleted.
Oops, something went wrong.
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,25 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import sys | ||
from pathlib import Path | ||
|
||
root_directory = Path(__file__).parent | ||
sys.path.append(str(root_directory)) | ||
|
||
from src.ansible_utils import load_vars | ||
from src.docker_utils import build_and_push_docker_img | ||
|
||
root_directory = Path(__file__).parent.parent | ||
data = load_vars(root_directory / '.ansible/vault_key', | ||
root_directory / 'vars/vault.yaml') | ||
docker_username = data['docker_username'] | ||
docker_password = data['docker_password'] | ||
|
||
access_token = sys.argv[1] | ||
|
||
if not access_token: | ||
print("GitHub access token is missing", flush=True, file=sys.stderr) | ||
exit(1) | ||
|
||
build_and_push_docker_img(src="src", tag_prefix="docker-image", | ||
image_name="publish-tools-test", docker_username=docker_username, docker_password=docker_password, github_access_token=access_token) |
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,13 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from pathlib import Path | ||
import sys | ||
|
||
root_directory = Path(__file__).parent.parent | ||
sys.path.append(str(root_directory)) | ||
|
||
from src.ansible_utils import create_vault_key | ||
|
||
root_directory = Path(__file__).parent.parent | ||
|
||
create_vault_key(root_directory / '.ansible/vault_key') |
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,12 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from pathlib import Path | ||
import sys | ||
|
||
root_directory = Path(__file__).parent | ||
sys.path.append(str(root_directory)) | ||
|
||
from src.github_utils import create_pages_artifact | ||
|
||
|
||
create_pages_artifact(directory="test") |
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 @@ | ||
FROM alpine |
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
File renamed without changes.
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,9 @@ | ||
$ANSIBLE_VAULT;1.1;AES256 | ||
38393661643437653332646263313737663933656331666139626633616663623139363733636633 | ||
6638653635653535633033666265633634306139353939650a383435386361663839326466613061 | ||
63396165643062363837383465653235366232386263663263386465353361303430333634313234 | ||
3562373433323266640a396365666666323839623430396130363565323033393537316536333736 | ||
33623861373038313430303534306639373735306131383164366665353739623532333832656434 | ||
64383836316664633335323132366366663936336564313335663439343263633262393133336533 | ||
30323736343335366637396138386264653063363436633566653630313161633231306333316237 | ||
64613131366666343333 |