V2 1.0.2 #3
No files matched your search
@@ -14,10 +14,15 @@ console.log("======== LOGGING IN TO CONTAINER REPO ========");
|
|||||||
execSync(
|
execSync(
|
||||||
"docker login $INPUT_CONTAINER_DOMAIN -u $INPUT_LOGIN_USER --password $INPUT_LOGIN_PASS",
|
"docker login $INPUT_CONTAINER_DOMAIN -u $INPUT_LOGIN_USER --password $INPUT_LOGIN_PASS",
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log("============= BUILDING CONTAINER =============");
|
console.log("============= BUILDING CONTAINER =============");
|
||||||
execSync(
|
execSync(
|
||||||
`docker build -t $INPUT_CONTAINER_DOMAIN/$INPUT_CONTAINER_NAME:latest -t $INPUT_CONTAINER_DOMAIN/$INPUT_CONTAINER_NAME:${tag} --no-cache .`,
|
`docker build -t $INPUT_CONTAINER_DOMAIN/$INPUT_CONTAINER_NAME:latest -t $INPUT_CONTAINER_DOMAIN/$INPUT_CONTAINER_NAME:${tag} --no-cache .`,
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log("============= PUSHING CONTAINER ==============");
|
console.log("============= PUSHING CONTAINER ==============");
|
||||||
execSync(`docker push $INPUT_CONTAINER_DOMAIN/$INPUT_CONTAINER_NAME:${tag}`);
|
execSync(`docker push $INPUT_CONTAINER_DOMAIN/$INPUT_CONTAINER_NAME:${tag}`);
|
||||||
execSync(`docker push $INPUT_CONTAINER_DOMAIN/$INPUT_CONTAINER_NAME:latest`);
|
execSync(`docker push $INPUT_CONTAINER_DOMAIN/$INPUT_CONTAINER_NAME:latest`);
|
||||||
|
|
||||||
|
console.log("============= CLEANING UP =============");
|
||||||
|
execSync("docker system prune -a -f");
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "container_publish",
|
"name": "container_publish",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"description": "gitea action for publishing the latest changes to a container repository",
|
"description": "gitea action for publishing the latest changes to a container repository",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in new issue
Block a user