pls work
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 38s
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 38s
This commit is contained in:
parent
a9f3f74880
commit
123b01d1d0
@ -25,9 +25,5 @@ WORKDIR /home/container
|
||||
# Copy the built jar file from the builder stage
|
||||
COPY --from=builder /home/container/target/PIA-Servers.jar .
|
||||
|
||||
# Make port 80 available to the world outside this container
|
||||
EXPOSE 80
|
||||
ENV PORT=80
|
||||
|
||||
# Run the jar file
|
||||
CMD java -jar PIA-Servers.jar -Djava.awt.headless=true
|
@ -22,6 +22,15 @@ public class GitUtils {
|
||||
runCommand("git", "push", "https://pia-servers-ci:%s@git.fascinated.cc/Fascinated/PIA-Servers".formatted(System.getenv("AUTH_TOKEN")));
|
||||
}
|
||||
|
||||
/**
|
||||
* Clone the repository
|
||||
*/
|
||||
public static void cloneRepo() {
|
||||
if (System.getenv("ENVIRONMENT").equals("production")) {
|
||||
runCommand("git", "clone", "https://git.fascinated.cc/Fascinated/PIA-Servers.git");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Run a system command
|
||||
*
|
||||
|
@ -41,6 +41,8 @@ public class PiaManager {
|
||||
SERVERS = new ArrayList<>();
|
||||
}
|
||||
|
||||
GitUtils.cloneRepo(); // Clone the repository
|
||||
|
||||
new Timer().scheduleAtFixedRate(new TimerTask() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
Loading…
Reference in New Issue
Block a user