27 Commits

Author SHA1 Message Date
0da0f43729 7
All checks were successful
Publish Docker Image / docker (push) Successful in 1m19s
2024-09-28 18:21:48 +01:00
76034f2d7e im silly
All checks were successful
Publish Docker Image / docker (push) Successful in 1m1s
2024-09-28 18:18:31 +01:00
7c5b10da0b oops
All checks were successful
Publish Docker Image / docker (push) Successful in 1m8s
2024-09-28 18:15:56 +01:00
2cbea618bd now !
Some checks failed
Publish Docker Image / docker (push) Failing after 51s
2024-09-28 18:13:30 +01:00
dea7a6647c fix?
All checks were successful
Publish Docker Image / docker (push) Successful in 1m9s
2024-09-28 18:11:44 +01:00
e313dad836 now?
All checks were successful
Publish Docker Image / docker (push) Successful in 1m11s
2024-09-28 12:22:10 +01:00
482b648aed oopsies
All checks were successful
Publish Docker Image / docker (push) Successful in 1m9s
2024-09-28 12:17:45 +01:00
Lee
b9ef918d4c Update Dockerfile
Some checks failed
Publish Docker Image / docker (push) Failing after 39s
2024-09-28 11:13:20 +00:00
Lee
9b39a3a9ac Update Dockerfile
Some checks failed
Publish Docker Image / docker (push) Failing after 31s
2024-09-28 11:11:54 +00:00
Lee
e0d5ae5e66 Update Dockerfile
Some checks failed
Publish Docker Image / docker (push) Failing after 43s
2024-09-28 11:10:12 +00:00
Lee
7714cc614a Update docker/start.sh
Some checks failed
Publish Docker Image / docker (push) Has been cancelled
2024-09-28 11:09:40 +00:00
Lee
0ad26585e4 Merge pull request 'chore(deps): update alpine docker tag to v3.20.3' (#23) from renovate/alpine-3.x into master
All checks were successful
Publish Docker Image / docker (push) Successful in 1m36s
Reviewed-on: #23
2024-09-08 21:44:12 +00:00
2a614a94de chore(deps): update alpine docker tag to v3.20.3 2024-09-06 23:03:29 +00:00
Lee
56000f7e4b Merge pull request 'chore(deps): update alpine docker tag to v3.20.2' (#22) from renovate/alpine-3.x into master
All checks were successful
Publish Docker Image / docker (push) Successful in 1m48s
Reviewed-on: #22
2024-07-30 21:06:38 +00:00
05c2272385 chore(deps): update alpine docker tag to v3.20.2 2024-07-22 22:01:54 +00:00
Lee
f31493fabf Update docker/start.sh
All checks were successful
Publish Docker Image / docker (push) Successful in 59s
2024-07-07 18:16:42 +00:00
Lee
672624abd5 Update docker/start.sh
All checks were successful
Publish Docker Image / docker (push) Successful in 57s
2024-07-07 18:14:18 +00:00
Lee
970b918b8d Update Dockerfile
Some checks failed
Publish Docker Image / docker (push) Has been cancelled
2024-07-07 18:13:52 +00:00
Lee
814a81d74e Update Dockerfile
Some checks failed
Publish Docker Image / docker (push) Failing after 47s
2024-07-07 18:12:46 +00:00
Lee
e037c69a5e Update Dockerfile
All checks were successful
Publish Docker Image / docker (push) Successful in 1m4s
2024-07-07 18:09:13 +00:00
Lee
43f6b0c56e Update renovate.json
Some checks failed
Publish Docker Image / docker (push) Failing after 49s
2024-07-07 18:06:33 +00:00
Lee
1296ce3722 bump depends
Some checks failed
Publish Docker Image / docker (push) Has been cancelled
2024-07-07 18:06:04 +00:00
2039f673ad chore(deps): update docker/build-push-action action to v6
All checks were successful
Publish Docker Image / docker (push) Successful in 1m19s
2024-06-17 10:01:38 +00:00
Lee
ca49cf2a51 Update README.md 2024-02-28 18:37:22 +00:00
Lee
14ce3e887c make nginx build silently
All checks were successful
Publish Docker Image / docker (push) Successful in 1m13s
2024-02-26 17:52:32 +00:00
Lee
b893f23ba5 Merge pull request 'chore(deps): update actions/cache action to v4' (#19) from renovate/actions-cache-4.x into master
All checks were successful
Publish Docker Image / docker (push) Successful in 1m1s
Reviewed-on: #19
2024-02-26 17:49:24 +00:00
f5f3382d7e chore(deps): update actions/cache action to v4 2024-01-17 17:04:26 +00:00
5 changed files with 24 additions and 25 deletions

View File

@ -23,7 +23,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Restore Docker Cache - name: Restore Docker Cache
uses: actions/cache@v3 uses: actions/cache@v4
id: docker-cache id: docker-cache
with: with:
path: /usr/bin/docker path: /usr/bin/docker
@ -47,14 +47,14 @@ jobs:
password: ${{ secrets.REPO_TOKEN }} password: ${{ secrets.REPO_TOKEN }}
- name: Restore Docker Build Cache - name: Restore Docker Build Cache
uses: actions/cache@v3 uses: actions/cache@v4
id: build-cache id: build-cache
with: with:
path: /tmp/.buildx-cache path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx key: ${{ runner.os }}-buildx
- name: Build and Push (Latest) - name: Build and Push (Latest)
uses: docker/build-push-action@v5 uses: docker/build-push-action@v6
if: steps.branch-name.outputs.current_branch == 'master' if: steps.branch-name.outputs.current_branch == 'master'
with: with:
push: true push: true
@ -64,7 +64,7 @@ jobs:
cache-to: type=local,dest=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache
- name: Build and Push (Other Branches) - name: Build and Push (Other Branches)
uses: docker/build-push-action@v5 uses: docker/build-push-action@v6
if: steps.branch-name.outputs.current_branch != 'master' if: steps.branch-name.outputs.current_branch != 'master'
with: with:
push: true push: true

View File

@ -1,5 +1,5 @@
# Stage 1: Build Nginx # Stage 1: Build Nginx
FROM alpine:3.19.1 as builder FROM alpine:3.20.3 as builder
# Install build dependencies and required tools # Install build dependencies and required tools
RUN apk update && apk upgrade && \ RUN apk update && apk upgrade && \
@ -7,12 +7,14 @@ RUN apk update && apk upgrade && \
# Download and build the latest version of Nginx from source # Download and build the latest version of Nginx from source
WORKDIR /tmp WORKDIR /tmp
RUN wget https://nginx.org/download/nginx-1.25.3.tar.gz RUN wget https://nginx.org/download/nginx-1.27.0.tar.gz && \
RUN tar -xzvf nginx-1.25.3.tar.gz tar -xzvf nginx-1.27.0.tar.gz && \
WORKDIR /tmp/nginx-1.25.3 cd nginx-1.27.0 && \
RUN ./configure --prefix=/usr/local/nginx --sbin-path=/usr/local/sbin/nginx --conf-path=/etc/nginx/nginx.conf ./configure --prefix=/usr/local/nginx --sbin-path=/usr/local/sbin/nginx --conf-path=/etc/nginx/nginx.conf && \
RUN make make > /dev/null 2>&1 && \
RUN make install make install > /dev/null 2>&1 && \
make_status=$? && \
if [ $make_status -ne 0 ]; then echo "Nginx build failed"; exit $make_status; fi
# Cleanup unnecessary files # Cleanup unnecessary files
RUN rm -rf /tmp/* RUN rm -rf /tmp/*
@ -29,7 +31,7 @@ COPY ./docker/index.html /tmp/index.html
COPY ./public /tmp/public COPY ./public /tmp/public
# Stage 2: Create a smaller production image # Stage 2: Create a smaller production image
FROM alpine:3.19.1 FROM alpine:3.20.3
# Copy Nginx and PHP-FPM binaries and configurations from the builder stage # Copy Nginx and PHP-FPM binaries and configurations from the builder stage
COPY --from=builder /usr/local/nginx /usr/local/nginx COPY --from=builder /usr/local/nginx /usr/local/nginx
@ -42,7 +44,7 @@ COPY --from=builder /tmp/public /tmp/public
# Install runtime dependencies # Install runtime dependencies
RUN apk update && apk upgrade && \ RUN apk update && apk upgrade && \
apk add --no-cache php81 php81-fpm php81-gd pcre apk add --no-cache php83 php83-fpm php83-gd pcre
# Cleanup unnecessary files # Cleanup unnecessary files
RUN rm -rf /var/cache/apk/* RUN rm -rf /var/cache/apk/*

View File

@ -1,4 +1,4 @@
# ShareX Upload Script # ShareX Uploader
This PHP script allows you to easily upload ShareX screenshots and videos. It includes token authentication for security and can handle various image file types by converting them to WebP format for efficient storage. This PHP script allows you to easily upload ShareX screenshots and videos. It includes token authentication for security and can handle various image file types by converting them to WebP format for efficient storage.

View File

@ -23,15 +23,15 @@ else
fi fi
# Letting php know that we are running in docker # Letting php know that we are running in docker
echo "env[DOCKER] = true" >> /etc/php81/php-fpm.d/www.conf echo "env[DOCKER] = true" >> /etc/php83/php-fpm.d/www.conf
echo "clear_env = no" >> /etc/php81/php-fpm.d/www.conf echo "clear_env = no" >> /etc/php83/php-fpm.d/www.conf
# Create the directory for PHP socket # Create the directory for PHP socket
mkdir -p /run/php mkdir -p /run/php
# Set php-fpm to listen on socket # Set php-fpm to listen on socket
touch /run/php/php.sock touch /run/php/php.sock
sed -i 's/^listen = .*/listen = \/run\/php\/php.sock/' /etc/php81/php-fpm.d/www.conf sed -i 's/^listen = .*/listen = \/run\/php\/php.sock/' /etc/php83/php-fpm.d/www.conf
echo "Setting permissions for upload script" echo "Setting permissions for upload script"
chmod 777 /var/www/html/upload.php chmod 777 /var/www/html/upload.php
@ -39,15 +39,15 @@ chmod 777 /var/www/html/upload.php
echo "Setting max upload size to ${MAX_UPLOAD_SIZE}" echo "Setting max upload size to ${MAX_UPLOAD_SIZE}"
# Set max upload size for php # Set max upload size for php
sed -i "s/^upload_max_filesize = .*/upload_max_filesize = ${MAX_UPLOAD_SIZE}/" /etc/php81/php.ini sed -i "s/^upload_max_filesize = .*/upload_max_filesize = ${MAX_UPLOAD_SIZE}/" /etc/php83/php.ini
sed -i "s/^post_max_size = .*/post_max_size = ${MAX_UPLOAD_SIZE}/" /etc/php81/php.ini sed -i "s/^post_max_size = .*/post_max_size = ${MAX_UPLOAD_SIZE}/" /etc/php83/php.ini
# Set max upload size for nginx # Set max upload size for nginx
sed -i "s/client_max_body_size 500M;/client_max_body_size ${MAX_UPLOAD_SIZE};/" /etc/nginx/nginx.conf sed -i "s/client_max_body_size 500M;/client_max_body_size ${MAX_UPLOAD_SIZE};/" /etc/nginx/nginx.conf
function start() { function start() {
echo "Starting PHP & Nginx" echo "Starting PHP & Nginx"
php-fpm81 && php-fpm83 &&
chmod 777 /run/php/php.sock && chmod 777 /run/php/php.sock &&
/usr/local/sbin/nginx -g 'daemon off;' /usr/local/sbin/nginx -g 'daemon off;'
} }

View File

@ -1,6 +1,3 @@
{ {
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": ["config:recommended", ":dependencyDashboard"]
"extends": [ }
"local>Fascinated/renovate-config"
]
}