Updated workflows
Some checks failed
etherpad / build (push) Successful in 1m24s
docker-buildx / build (push) Successful in 1m11s
ansible / build (push) Successful in 20m43s
caddy / build (push) Successful in 6m28s
wolfree / build (push) Failing after 5s
simplytranslate / build (push) Failing after 4s
searxng / build-searxng (push) Failing after 3s
rat-aint-tieba / build (push) Failing after 5s
proxigram / build (push) Failing after 5s
imgin / build (push) Failing after 4s
binternet / build (push) Failing after 3s
Some checks failed
etherpad / build (push) Successful in 1m24s
docker-buildx / build (push) Successful in 1m11s
ansible / build (push) Successful in 20m43s
caddy / build (push) Successful in 6m28s
wolfree / build (push) Failing after 5s
simplytranslate / build (push) Failing after 4s
searxng / build-searxng (push) Failing after 3s
rat-aint-tieba / build (push) Failing after 5s
proxigram / build (push) Failing after 5s
imgin / build (push) Failing after 4s
binternet / build (push) Failing after 3s
This commit is contained in:
parent
2c0fe2c863
commit
16159ef4c4
@ -16,11 +16,8 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: runner
|
runs-on: runner
|
||||||
container:
|
container:
|
||||||
image: docker:cli
|
image: git.opnxng.com/opnxng/docker-buildx:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install packages
|
|
||||||
run: apk --no-cache add curl git jq
|
|
||||||
|
|
||||||
- name: Check latest upstream commit
|
- name: Check latest upstream commit
|
||||||
run: |
|
run: |
|
||||||
STORED_COMMIT=$(curl -H "Authorization: Bearer ${{ secrets.NT }}" -s "https://nt.opnxng.com/${REPO_NAME}/raw?poll=1" | tail -n 1)
|
STORED_COMMIT=$(curl -H "Authorization: Bearer ${{ secrets.NT }}" -s "https://nt.opnxng.com/${REPO_NAME}/raw?poll=1" | tail -n 1)
|
||||||
@ -34,19 +31,15 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [ "$STORED_COMMIT" != "$LATEST_COMMIT" ]; then
|
if [ "$STORED_COMMIT" != "$LATEST_COMMIT" ]; then
|
||||||
echo "Found a new commit, building new image"
|
echo "Found a new commit, building new image"
|
||||||
# Install Docker Buildx
|
|
||||||
BUILDX_VERSION=$(wget -q -O- https://api.github.com/repos/docker/buildx/releases/latest | jq -r '.name')
|
|
||||||
wget -O /usr/bin/docker-buildx https://github.com/docker/buildx/releases/download/$BUILDX_VERSION/buildx-$BUILDX_VERSION.linux-arm64
|
|
||||||
chmod +x /usr/bin/docker-buildx
|
|
||||||
# Create and use Docker Buildx builder
|
# Create and use Docker Buildx builder
|
||||||
docker-buildx create --use --name buildx
|
docker buildx create --use --name buildx
|
||||||
# Login to Package Registry
|
# Login to Package Registry
|
||||||
echo "${{ secrets.TOKEN }}" | docker login git.opnxng.com -u ${{ gitea.repository_owner }} --password-stdin
|
echo "${{ secrets.TOKEN }}" | docker login git.opnxng.com -u ${{ gitea.repository_owner }} --password-stdin
|
||||||
# Build and push Docker image
|
# Build and push Docker image
|
||||||
mkdir temp
|
mkdir temp
|
||||||
cd temp
|
cd temp
|
||||||
curl -JL https://git.opnxng.com/opnxng/docker-images/raw/branch/main/dockerfiles/ansible.Dockerfile -o Dockerfile
|
curl -JL https://git.opnxng.com/opnxng/docker-images/raw/branch/main/dockerfiles/ansible.Dockerfile -o Dockerfile
|
||||||
docker-buildx build \
|
docker buildx build \
|
||||||
--platform ${BUILD_PLATFORM} \
|
--platform ${BUILD_PLATFORM} \
|
||||||
-t git.opnxng.com/${{ gitea.repository_owner }}/${REPO_NAME}:latest \
|
-t git.opnxng.com/${{ gitea.repository_owner }}/${REPO_NAME}:latest \
|
||||||
-f ./Dockerfile \
|
-f ./Dockerfile \
|
||||||
@ -54,7 +47,7 @@ jobs:
|
|||||||
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
||||||
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
||||||
# Remove Docker Buildx builder
|
# Remove Docker Buildx builder
|
||||||
docker-buildx rm buildx
|
docker buildx rm buildx
|
||||||
else
|
else
|
||||||
echo "No new commit, skipped build"
|
echo "No new commit, skipped build"
|
||||||
fi
|
fi
|
||||||
|
@ -15,11 +15,8 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: runner
|
runs-on: runner
|
||||||
container:
|
container:
|
||||||
image: docker:cli
|
image: git.opnxng.com/opnxng/docker-buildx:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install packages
|
|
||||||
run: apk --no-cache add curl git jq
|
|
||||||
|
|
||||||
- name: Check latest upstream commit
|
- name: Check latest upstream commit
|
||||||
run: |
|
run: |
|
||||||
STORED_COMMIT=$(curl -H "Authorization: Bearer ${{ secrets.NT }}" -s "https://nt.opnxng.com/${REPO_NAME}/raw?poll=1" | tail -n 1)
|
STORED_COMMIT=$(curl -H "Authorization: Bearer ${{ secrets.NT }}" -s "https://nt.opnxng.com/${REPO_NAME}/raw?poll=1" | tail -n 1)
|
||||||
@ -33,19 +30,15 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [ "$STORED_COMMIT" != "$LATEST_COMMIT" ]; then
|
if [ "$STORED_COMMIT" != "$LATEST_COMMIT" ]; then
|
||||||
echo "Found a new commit, building new image"
|
echo "Found a new commit, building new image"
|
||||||
# Install Docker Buildx
|
|
||||||
BUILDX_VERSION=$(wget -q -O- https://api.github.com/repos/docker/buildx/releases/latest | jq -r '.name')
|
|
||||||
wget -O /usr/bin/docker-buildx https://github.com/docker/buildx/releases/download/$BUILDX_VERSION/buildx-$BUILDX_VERSION.linux-arm64
|
|
||||||
chmod +x /usr/bin/docker-buildx
|
|
||||||
# Create and use Docker Buildx builder
|
# Create and use Docker Buildx builder
|
||||||
docker-buildx create --use --name buildx
|
docker buildx create --use --name buildx
|
||||||
# Login to Package Registry
|
# Login to Package Registry
|
||||||
echo "${{ secrets.TOKEN }}" | docker login git.opnxng.com -u ${{ gitea.repository_owner }} --password-stdin
|
echo "${{ secrets.TOKEN }}" | docker login git.opnxng.com -u ${{ gitea.repository_owner }} --password-stdin
|
||||||
# Build and push Docker image
|
# Build and push Docker image
|
||||||
mkdir temp
|
mkdir temp
|
||||||
cd temp
|
cd temp
|
||||||
git clone ${REMOTE_REPO} .
|
git clone ${REMOTE_REPO} .
|
||||||
docker-buildx build \
|
docker buildx build \
|
||||||
--platform ${BUILD_PLATFORM} \
|
--platform ${BUILD_PLATFORM} \
|
||||||
-t git.opnxng.com/${{ gitea.repository_owner }}/${REPO_NAME}:latest \
|
-t git.opnxng.com/${{ gitea.repository_owner }}/${REPO_NAME}:latest \
|
||||||
-f ./Dockerfile \
|
-f ./Dockerfile \
|
||||||
@ -53,7 +46,7 @@ jobs:
|
|||||||
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
||||||
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
||||||
# Remove Docker Buildx builder
|
# Remove Docker Buildx builder
|
||||||
docker-buildx rm buildx
|
docker buildx rm buildx
|
||||||
else
|
else
|
||||||
echo "No new commit, skipped build"
|
echo "No new commit, skipped build"
|
||||||
fi
|
fi
|
||||||
|
@ -16,11 +16,8 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: runner
|
runs-on: runner
|
||||||
container:
|
container:
|
||||||
image: docker:cli
|
image: git.opnxng.com/opnxng/docker-buildx:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install packages
|
|
||||||
run: apk --no-cache add curl git jq
|
|
||||||
|
|
||||||
- name: Check latest upstream commit
|
- name: Check latest upstream commit
|
||||||
run: |
|
run: |
|
||||||
STORED_COMMIT=$(curl -H "Authorization: Bearer ${{ secrets.NT }}" -s "https://nt.opnxng.com/${REPO_NAME}/raw?poll=1" | tail -n 1)
|
STORED_COMMIT=$(curl -H "Authorization: Bearer ${{ secrets.NT }}" -s "https://nt.opnxng.com/${REPO_NAME}/raw?poll=1" | tail -n 1)
|
||||||
@ -34,19 +31,15 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [ "$STORED_COMMIT" != "$LATEST_COMMIT" ]; then
|
if [ "$STORED_COMMIT" != "$LATEST_COMMIT" ]; then
|
||||||
echo "Found a new commit, building new image"
|
echo "Found a new commit, building new image"
|
||||||
# Install Docker Buildx
|
|
||||||
BUILDX_VERSION=$(wget -q -O- https://api.github.com/repos/docker/buildx/releases/latest | jq -r '.name')
|
|
||||||
wget -O /usr/bin/docker-buildx https://github.com/docker/buildx/releases/download/$BUILDX_VERSION/buildx-$BUILDX_VERSION.linux-arm64
|
|
||||||
chmod +x /usr/bin/docker-buildx
|
|
||||||
# Create and use Docker Buildx builder
|
# Create and use Docker Buildx builder
|
||||||
docker-buildx create --use --name buildx
|
docker buildx create --use --name buildx
|
||||||
# Login to Package Registry
|
# Login to Package Registry
|
||||||
echo "${{ secrets.TOKEN }}" | docker login git.opnxng.com -u ${{ gitea.repository_owner }} --password-stdin
|
echo "${{ secrets.TOKEN }}" | docker login git.opnxng.com -u ${{ gitea.repository_owner }} --password-stdin
|
||||||
# Build and push Docker image
|
# Build and push Docker image
|
||||||
mkdir temp
|
mkdir temp
|
||||||
cd temp
|
cd temp
|
||||||
curl -JL https://git.opnxng.com/opnxng/docker-images/raw/branch/main/dockerfiles/caddy.Dockerfile -o Dockerfile
|
curl -JL https://git.opnxng.com/opnxng/docker-images/raw/branch/main/dockerfiles/caddy.Dockerfile -o Dockerfile
|
||||||
docker-buildx build \
|
docker buildx build \
|
||||||
--platform ${BUILD_PLATFORM} \
|
--platform ${BUILD_PLATFORM} \
|
||||||
-t git.opnxng.com/${{ gitea.repository_owner }}/${REPO_NAME}:latest \
|
-t git.opnxng.com/${{ gitea.repository_owner }}/${REPO_NAME}:latest \
|
||||||
-f ./Dockerfile \
|
-f ./Dockerfile \
|
||||||
@ -54,7 +47,7 @@ jobs:
|
|||||||
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
||||||
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
||||||
# Remove Docker Buildx builder
|
# Remove Docker Buildx builder
|
||||||
docker-buildx rm buildx
|
docker buildx rm buildx
|
||||||
else
|
else
|
||||||
echo "No new commit, skipped build"
|
echo "No new commit, skipped build"
|
||||||
fi
|
fi
|
||||||
|
@ -16,11 +16,8 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: runner
|
runs-on: runner
|
||||||
container:
|
container:
|
||||||
image: docker:cli
|
image: git.opnxng.com/opnxng/docker-buildx:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install packages
|
|
||||||
run: apk --no-cache add curl git jq
|
|
||||||
|
|
||||||
- name: Check latest upstream commit
|
- name: Check latest upstream commit
|
||||||
run: |
|
run: |
|
||||||
STORED_COMMIT=$(curl -H "Authorization: Bearer ${{ secrets.NT }}" -s "https://nt.opnxng.com/${REPO_NAME}/raw?poll=1" | tail -n 1)
|
STORED_COMMIT=$(curl -H "Authorization: Bearer ${{ secrets.NT }}" -s "https://nt.opnxng.com/${REPO_NAME}/raw?poll=1" | tail -n 1)
|
||||||
@ -34,19 +31,15 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [ "$STORED_COMMIT" != "$LATEST_COMMIT" ]; then
|
if [ "$STORED_COMMIT" != "$LATEST_COMMIT" ]; then
|
||||||
echo "Found a new commit, building new image"
|
echo "Found a new commit, building new image"
|
||||||
# Install Docker Buildx
|
|
||||||
BUILDX_VERSION=$(wget -q -O- https://api.github.com/repos/docker/buildx/releases/latest | jq -r '.name')
|
|
||||||
wget -O /usr/bin/docker-buildx https://github.com/docker/buildx/releases/download/$BUILDX_VERSION/buildx-$BUILDX_VERSION.linux-arm64
|
|
||||||
chmod +x /usr/bin/docker-buildx
|
|
||||||
# Create and use Docker Buildx builder
|
# Create and use Docker Buildx builder
|
||||||
docker-buildx create --use --name buildx
|
docker buildx create --use --name buildx
|
||||||
# Login to Package Registry
|
# Login to Package Registry
|
||||||
echo "${{ secrets.TOKEN }}" | docker login git.opnxng.com -u ${{ gitea.repository_owner }} --password-stdin
|
echo "${{ secrets.TOKEN }}" | docker login git.opnxng.com -u ${{ gitea.repository_owner }} --password-stdin
|
||||||
# Build and push Docker image
|
# Build and push Docker image
|
||||||
mkdir temp
|
mkdir temp
|
||||||
cd temp
|
cd temp
|
||||||
curl -JL https://git.opnxng.com/opnxng/docker-images/raw/branch/main/dockerfiles/etherpad.Dockerfile -o Dockerfile
|
curl -JL https://git.opnxng.com/opnxng/docker-images/raw/branch/main/dockerfiles/etherpad.Dockerfile -o Dockerfile
|
||||||
docker-buildx build \
|
docker buildx build \
|
||||||
--platform ${BUILD_PLATFORM} \
|
--platform ${BUILD_PLATFORM} \
|
||||||
-t git.opnxng.com/${{ gitea.repository_owner }}/${REPO_NAME}:latest \
|
-t git.opnxng.com/${{ gitea.repository_owner }}/${REPO_NAME}:latest \
|
||||||
-f ./Dockerfile \
|
-f ./Dockerfile \
|
||||||
@ -54,7 +47,7 @@ jobs:
|
|||||||
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
||||||
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
||||||
# Remove Docker Buildx builder
|
# Remove Docker Buildx builder
|
||||||
docker-buildx rm buildx
|
docker buildx rm buildx
|
||||||
else
|
else
|
||||||
echo "No new commit, skipped build"
|
echo "No new commit, skipped build"
|
||||||
fi
|
fi
|
||||||
|
@ -15,11 +15,8 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: runner
|
runs-on: runner
|
||||||
container:
|
container:
|
||||||
image: docker:cli
|
image: git.opnxng.com/opnxng/docker-buildx:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install packages
|
|
||||||
run: apk --no-cache add curl git jq
|
|
||||||
|
|
||||||
- name: Check latest upstream commit
|
- name: Check latest upstream commit
|
||||||
run: |
|
run: |
|
||||||
STORED_COMMIT=$(curl -H "Authorization: Bearer ${{ secrets.NT }}" -s "https://nt.opnxng.com/${REPO_NAME}/raw?poll=1" | tail -n 1)
|
STORED_COMMIT=$(curl -H "Authorization: Bearer ${{ secrets.NT }}" -s "https://nt.opnxng.com/${REPO_NAME}/raw?poll=1" | tail -n 1)
|
||||||
@ -33,19 +30,15 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [ "$STORED_COMMIT" != "$LATEST_COMMIT" ]; then
|
if [ "$STORED_COMMIT" != "$LATEST_COMMIT" ]; then
|
||||||
echo "Found a new commit, building new image"
|
echo "Found a new commit, building new image"
|
||||||
# Install Docker Buildx
|
|
||||||
BUILDX_VERSION=$(wget -q -O- https://api.github.com/repos/docker/buildx/releases/latest | jq -r '.name')
|
|
||||||
wget -O /usr/bin/docker-buildx https://github.com/docker/buildx/releases/download/$BUILDX_VERSION/buildx-$BUILDX_VERSION.linux-arm64
|
|
||||||
chmod +x /usr/bin/docker-buildx
|
|
||||||
# Create and use Docker Buildx builder
|
# Create and use Docker Buildx builder
|
||||||
docker-buildx create --use --name buildx
|
docker buildx create --use --name buildx
|
||||||
# Login to Package Registry
|
# Login to Package Registry
|
||||||
echo "${{ secrets.TOKEN }}" | docker login git.opnxng.com -u ${{ gitea.repository_owner }} --password-stdin
|
echo "${{ secrets.TOKEN }}" | docker login git.opnxng.com -u ${{ gitea.repository_owner }} --password-stdin
|
||||||
# Build and push Docker image
|
# Build and push Docker image
|
||||||
mkdir temp
|
mkdir temp
|
||||||
cd temp
|
cd temp
|
||||||
git clone ${REMOTE_REPO} .
|
git clone ${REMOTE_REPO} .
|
||||||
docker-buildx build \
|
docker buildx build \
|
||||||
--platform ${BUILD_PLATFORM} \
|
--platform ${BUILD_PLATFORM} \
|
||||||
-t git.opnxng.com/${{ gitea.repository_owner }}/${REPO_NAME}:latest \
|
-t git.opnxng.com/${{ gitea.repository_owner }}/${REPO_NAME}:latest \
|
||||||
-f ./Dockerfile \
|
-f ./Dockerfile \
|
||||||
@ -53,7 +46,7 @@ jobs:
|
|||||||
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
||||||
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
||||||
# Remove Docker Buildx builder
|
# Remove Docker Buildx builder
|
||||||
docker-buildx rm buildx
|
docker buildx rm buildx
|
||||||
else
|
else
|
||||||
echo "No new commit, skipped build"
|
echo "No new commit, skipped build"
|
||||||
fi
|
fi
|
||||||
|
@ -15,11 +15,8 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: runner
|
runs-on: runner
|
||||||
container:
|
container:
|
||||||
image: docker:cli
|
image: git.opnxng.com/opnxng/docker-buildx:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install packages
|
|
||||||
run: apk --no-cache add curl git jq
|
|
||||||
|
|
||||||
- name: Check latest upstream commit
|
- name: Check latest upstream commit
|
||||||
run: |
|
run: |
|
||||||
STORED_COMMIT=$(curl -H "Authorization: Bearer ${{ secrets.NT }}" -s "https://nt.opnxng.com/${REPO_NAME}/raw?poll=1" | tail -n 1)
|
STORED_COMMIT=$(curl -H "Authorization: Bearer ${{ secrets.NT }}" -s "https://nt.opnxng.com/${REPO_NAME}/raw?poll=1" | tail -n 1)
|
||||||
@ -33,12 +30,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [ "$STORED_COMMIT" != "$LATEST_COMMIT" ]; then
|
if [ "$STORED_COMMIT" != "$LATEST_COMMIT" ]; then
|
||||||
echo "Found a new commit, building new image"
|
echo "Found a new commit, building new image"
|
||||||
# Install Docker Buildx
|
|
||||||
BUILDX_VERSION=$(wget -q -O- https://api.github.com/repos/docker/buildx/releases/latest | jq -r '.name')
|
|
||||||
wget -O /usr/bin/docker-buildx https://github.com/docker/buildx/releases/download/$BUILDX_VERSION/buildx-$BUILDX_VERSION.linux-arm64
|
|
||||||
chmod +x /usr/bin/docker-buildx
|
|
||||||
# Create and use Docker Buildx builder
|
# Create and use Docker Buildx builder
|
||||||
docker-buildx create --use --name buildx
|
docker buildx create --use --name buildx
|
||||||
# Login to Package Registry
|
# Login to Package Registry
|
||||||
echo "${{ secrets.TOKEN }}" | docker login git.opnxng.com -u ${{ gitea.repository_owner }} --password-stdin
|
echo "${{ secrets.TOKEN }}" | docker login git.opnxng.com -u ${{ gitea.repository_owner }} --password-stdin
|
||||||
# Build and push Docker image
|
# Build and push Docker image
|
||||||
@ -46,7 +39,7 @@ jobs:
|
|||||||
cd temp
|
cd temp
|
||||||
git clone ${REMOTE_REPO} .
|
git clone ${REMOTE_REPO} .
|
||||||
curl -JL https://git.opnxng.com/opnxng/docker-images/raw/branch/main/copy/proxigram.env -o .env
|
curl -JL https://git.opnxng.com/opnxng/docker-images/raw/branch/main/copy/proxigram.env -o .env
|
||||||
docker-buildx build \
|
docker buildx build \
|
||||||
--platform ${BUILD_PLATFORM} \
|
--platform ${BUILD_PLATFORM} \
|
||||||
-t git.opnxng.com/${{ gitea.repository_owner }}/${REPO_NAME}:latest \
|
-t git.opnxng.com/${{ gitea.repository_owner }}/${REPO_NAME}:latest \
|
||||||
-f ./Dockerfile \
|
-f ./Dockerfile \
|
||||||
@ -54,7 +47,7 @@ jobs:
|
|||||||
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
||||||
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
||||||
# Remove Docker Buildx builder
|
# Remove Docker Buildx builder
|
||||||
docker-buildx rm buildx
|
docker buildx rm buildx
|
||||||
else
|
else
|
||||||
echo "No new commit, skipped build"
|
echo "No new commit, skipped build"
|
||||||
fi
|
fi
|
||||||
|
@ -15,11 +15,8 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: runner
|
runs-on: runner
|
||||||
container:
|
container:
|
||||||
image: docker:cli
|
image: git.opnxng.com/opnxng/docker-buildx:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install packages
|
|
||||||
run: apk --no-cache add curl git jq
|
|
||||||
|
|
||||||
- name: Check latest upstream commit
|
- name: Check latest upstream commit
|
||||||
run: |
|
run: |
|
||||||
STORED_COMMIT=$(curl -H "Authorization: Bearer ${{ secrets.NT }}" -s "https://nt.opnxng.com/${REPO_NAME}/raw?poll=1" | tail -n 1)
|
STORED_COMMIT=$(curl -H "Authorization: Bearer ${{ secrets.NT }}" -s "https://nt.opnxng.com/${REPO_NAME}/raw?poll=1" | tail -n 1)
|
||||||
@ -33,12 +30,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [ "$STORED_COMMIT" != "$LATEST_COMMIT" ]; then
|
if [ "$STORED_COMMIT" != "$LATEST_COMMIT" ]; then
|
||||||
echo "Found a new commit, building new image"
|
echo "Found a new commit, building new image"
|
||||||
# Install Docker Buildx
|
|
||||||
BUILDX_VERSION=$(wget -q -O- https://api.github.com/repos/docker/buildx/releases/latest | jq -r '.name')
|
|
||||||
wget -O /usr/bin/docker-buildx https://github.com/docker/buildx/releases/download/$BUILDX_VERSION/buildx-$BUILDX_VERSION.linux-arm64
|
|
||||||
chmod +x /usr/bin/docker-buildx
|
|
||||||
# Create and use Docker Buildx builder
|
# Create and use Docker Buildx builder
|
||||||
docker-buildx create --use --name buildx
|
docker buildx create --use --name buildx
|
||||||
# Login to Package Registry
|
# Login to Package Registry
|
||||||
echo "${{ secrets.TOKEN }}" | docker login git.opnxng.com -u ${{ gitea.repository_owner }} --password-stdin
|
echo "${{ secrets.TOKEN }}" | docker login git.opnxng.com -u ${{ gitea.repository_owner }} --password-stdin
|
||||||
# Build and push Docker image
|
# Build and push Docker image
|
||||||
@ -46,7 +39,7 @@ jobs:
|
|||||||
cd temp
|
cd temp
|
||||||
git clone ${REMOTE_REPO} .
|
git clone ${REMOTE_REPO} .
|
||||||
git checkout no-masters # Use no-masters branch
|
git checkout no-masters # Use no-masters branch
|
||||||
docker-buildx build \
|
docker buildx build \
|
||||||
--platform ${BUILD_PLATFORM} \
|
--platform ${BUILD_PLATFORM} \
|
||||||
-t git.opnxng.com/${{ gitea.repository_owner }}/${REPO_NAME}:latest \
|
-t git.opnxng.com/${{ gitea.repository_owner }}/${REPO_NAME}:latest \
|
||||||
-f ./Dockerfile \
|
-f ./Dockerfile \
|
||||||
@ -54,7 +47,7 @@ jobs:
|
|||||||
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
||||||
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
||||||
# Remove Docker Buildx builder
|
# Remove Docker Buildx builder
|
||||||
docker-buildx rm buildx
|
docker buildx rm buildx
|
||||||
else
|
else
|
||||||
echo "No new commit, skipped build"
|
echo "No new commit, skipped build"
|
||||||
fi
|
fi
|
||||||
|
@ -15,11 +15,8 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: runner
|
runs-on: runner
|
||||||
container:
|
container:
|
||||||
image: docker:cli
|
image: git.opnxng.com/opnxng/docker-buildx:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install packages
|
|
||||||
run: apk --no-cache add curl git jq
|
|
||||||
|
|
||||||
- name: Check latest upstream commit
|
- name: Check latest upstream commit
|
||||||
run: |
|
run: |
|
||||||
STORED_COMMIT=$(curl -H "Authorization: Bearer ${{ secrets.NT }}" -s "https://nt.opnxng.com/${REPO_NAME}/raw?poll=1" | tail -n 1)
|
STORED_COMMIT=$(curl -H "Authorization: Bearer ${{ secrets.NT }}" -s "https://nt.opnxng.com/${REPO_NAME}/raw?poll=1" | tail -n 1)
|
||||||
@ -33,12 +30,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [ "$STORED_COMMIT" != "$LATEST_COMMIT" ]; then
|
if [ "$STORED_COMMIT" != "$LATEST_COMMIT" ]; then
|
||||||
echo "Found a new commit, building new image"
|
echo "Found a new commit, building new image"
|
||||||
# Install Docker Buildx
|
|
||||||
BUILDX_VERSION=$(wget -q -O- https://api.github.com/repos/docker/buildx/releases/latest | jq -r '.name')
|
|
||||||
wget -O /usr/bin/docker-buildx https://github.com/docker/buildx/releases/download/$BUILDX_VERSION/buildx-$BUILDX_VERSION.linux-arm64
|
|
||||||
chmod +x /usr/bin/docker-buildx
|
|
||||||
# Create and use Docker Buildx builder
|
# Create and use Docker Buildx builder
|
||||||
docker-buildx create --use --name buildx
|
docker buildx create --use --name buildx
|
||||||
# Login to Package Registry
|
# Login to Package Registry
|
||||||
echo "${{ secrets.TOKEN }}" | docker login git.opnxng.com -u ${{ gitea.repository_owner }} --password-stdin
|
echo "${{ secrets.TOKEN }}" | docker login git.opnxng.com -u ${{ gitea.repository_owner }} --password-stdin
|
||||||
# Build and push Docker image
|
# Build and push Docker image
|
||||||
@ -46,7 +39,7 @@ jobs:
|
|||||||
cd temp
|
cd temp
|
||||||
git clone ${REMOTE_REPO} .
|
git clone ${REMOTE_REPO} .
|
||||||
# use Dockerfile.arm64
|
# use Dockerfile.arm64
|
||||||
docker-buildx build \
|
docker buildx build \
|
||||||
--platform ${BUILD_PLATFORM} \
|
--platform ${BUILD_PLATFORM} \
|
||||||
-t git.opnxng.com/${{ gitea.repository_owner }}/${REPO_NAME}:latest \
|
-t git.opnxng.com/${{ gitea.repository_owner }}/${REPO_NAME}:latest \
|
||||||
-f ./Dockerfile.arm64 \
|
-f ./Dockerfile.arm64 \
|
||||||
@ -54,7 +47,7 @@ jobs:
|
|||||||
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
||||||
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
||||||
# Remove Docker Buildx builder
|
# Remove Docker Buildx builder
|
||||||
docker-buildx rm buildx
|
docker buildx rm buildx
|
||||||
else
|
else
|
||||||
echo "No new commit, skipped build"
|
echo "No new commit, skipped build"
|
||||||
fi
|
fi
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
name: searxng
|
name: searxng
|
||||||
run-name: searxng
|
run-name: searxng
|
||||||
env:
|
env:
|
||||||
|
REPO_NAME: searxng
|
||||||
REMOTE_REPO: https://github.com/searxng/searxng.git
|
REMOTE_REPO: https://github.com/searxng/searxng.git
|
||||||
BUILD_PLATFORM: linux/arm64
|
BUILD_PLATFORM: linux/arm64
|
||||||
on:
|
on:
|
||||||
@ -14,13 +15,8 @@ jobs:
|
|||||||
build-searxng:
|
build-searxng:
|
||||||
runs-on: runner
|
runs-on: runner
|
||||||
container:
|
container:
|
||||||
image: docker:cli
|
image: git.opnxng.com/opnxng/docker-buildx:latest
|
||||||
env:
|
|
||||||
REPO_NAME: searxng
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install packages
|
|
||||||
run: apk --no-cache add curl git jq
|
|
||||||
|
|
||||||
- name: Check latest upstream commit
|
- name: Check latest upstream commit
|
||||||
run: |
|
run: |
|
||||||
STORED_COMMIT=$(curl -H "Authorization: Bearer ${{ secrets.NT }}" -s "https://nt.opnxng.com/${REPO_NAME}/raw?poll=1" | tail -n 1)
|
STORED_COMMIT=$(curl -H "Authorization: Bearer ${{ secrets.NT }}" -s "https://nt.opnxng.com/${REPO_NAME}/raw?poll=1" | tail -n 1)
|
||||||
@ -34,19 +30,15 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [ "$STORED_COMMIT" != "$LATEST_COMMIT" ]; then
|
if [ "$STORED_COMMIT" != "$LATEST_COMMIT" ]; then
|
||||||
echo "Found a new commit, building new image"
|
echo "Found a new commit, building new image"
|
||||||
# Install Docker Buildx
|
|
||||||
BUILDX_VERSION=$(wget -q -O- https://api.github.com/repos/docker/buildx/releases/latest | jq -r '.name')
|
|
||||||
wget -O /usr/bin/docker-buildx https://github.com/docker/buildx/releases/download/$BUILDX_VERSION/buildx-$BUILDX_VERSION.linux-arm64
|
|
||||||
chmod +x /usr/bin/docker-buildx
|
|
||||||
# Create and use Docker Buildx builder
|
# Create and use Docker Buildx builder
|
||||||
docker-buildx create --use --name buildx
|
docker buildx create --use --name buildx
|
||||||
# Login to Package Registry
|
# Login to Package Registry
|
||||||
echo "${{ secrets.TOKEN }}" | docker login git.opnxng.com -u ${{ gitea.repository_owner }} --password-stdin
|
echo "${{ secrets.TOKEN }}" | docker login git.opnxng.com -u ${{ gitea.repository_owner }} --password-stdin
|
||||||
# Build and push Docker image
|
# Build and push Docker image
|
||||||
mkdir temp
|
mkdir temp
|
||||||
cd temp
|
cd temp
|
||||||
curl -JL https://git.opnxng.com/opnxng/docker-images/raw/branch/main/dockerfiles/searxng.Dockerfile -o Dockerfile
|
curl -JL https://git.opnxng.com/opnxng/docker-images/raw/branch/main/dockerfiles/searxng.Dockerfile -o Dockerfile
|
||||||
docker-buildx build \
|
docker buildx build \
|
||||||
--platform ${BUILD_PLATFORM} \
|
--platform ${BUILD_PLATFORM} \
|
||||||
-t git.opnxng.com/${{ gitea.repository_owner }}/${REPO_NAME}:latest \
|
-t git.opnxng.com/${{ gitea.repository_owner }}/${REPO_NAME}:latest \
|
||||||
-f ./Dockerfile \
|
-f ./Dockerfile \
|
||||||
@ -54,7 +46,7 @@ jobs:
|
|||||||
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
||||||
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
||||||
# Remove Docker Buildx builder
|
# Remove Docker Buildx builder
|
||||||
docker-buildx rm buildx
|
docker buildx rm buildx
|
||||||
else
|
else
|
||||||
echo "No new commit, skipped build"
|
echo "No new commit, skipped build"
|
||||||
fi
|
fi
|
||||||
|
@ -15,11 +15,8 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: runner
|
runs-on: runner
|
||||||
container:
|
container:
|
||||||
image: docker:cli
|
image: git.opnxng.com/opnxng/docker-buildx:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install packages
|
|
||||||
run: apk --no-cache add curl git jq
|
|
||||||
|
|
||||||
- name: Check latest upstream commit
|
- name: Check latest upstream commit
|
||||||
run: |
|
run: |
|
||||||
STORED_COMMIT=$(curl -H "Authorization: Bearer ${{ secrets.NT }}" -s "https://nt.opnxng.com/${REPO_NAME}/raw?poll=1" | tail -n 1)
|
STORED_COMMIT=$(curl -H "Authorization: Bearer ${{ secrets.NT }}" -s "https://nt.opnxng.com/${REPO_NAME}/raw?poll=1" | tail -n 1)
|
||||||
@ -33,19 +30,15 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [ "$STORED_COMMIT" != "$LATEST_COMMIT" ]; then
|
if [ "$STORED_COMMIT" != "$LATEST_COMMIT" ]; then
|
||||||
echo "Found a new commit, building new image"
|
echo "Found a new commit, building new image"
|
||||||
# Install Docker Buildx
|
|
||||||
BUILDX_VERSION=$(wget -q -O- https://api.github.com/repos/docker/buildx/releases/latest | jq -r '.name')
|
|
||||||
wget -O /usr/bin/docker-buildx https://github.com/docker/buildx/releases/download/$BUILDX_VERSION/buildx-$BUILDX_VERSION.linux-arm64
|
|
||||||
chmod +x /usr/bin/docker-buildx
|
|
||||||
# Create and use Docker Buildx builder
|
# Create and use Docker Buildx builder
|
||||||
docker-buildx create --use --name buildx
|
docker buildx create --use --name buildx
|
||||||
# Login to Package Registry
|
# Login to Package Registry
|
||||||
echo "${{ secrets.TOKEN }}" | docker login git.opnxng.com -u ${{ gitea.repository_owner }} --password-stdin
|
echo "${{ secrets.TOKEN }}" | docker login git.opnxng.com -u ${{ gitea.repository_owner }} --password-stdin
|
||||||
# Build and push Docker image
|
# Build and push Docker image
|
||||||
mkdir temp
|
mkdir temp
|
||||||
cd temp
|
cd temp
|
||||||
git clone ${REMOTE_REPO} .
|
git clone ${REMOTE_REPO} .
|
||||||
docker-buildx build \
|
docker buildx build \
|
||||||
--platform ${BUILD_PLATFORM} \
|
--platform ${BUILD_PLATFORM} \
|
||||||
-t git.opnxng.com/${{ gitea.repository_owner }}/${REPO_NAME}:latest \
|
-t git.opnxng.com/${{ gitea.repository_owner }}/${REPO_NAME}:latest \
|
||||||
-f ./Dockerfile \
|
-f ./Dockerfile \
|
||||||
@ -53,7 +46,7 @@ jobs:
|
|||||||
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
||||||
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
||||||
# Remove Docker Buildx builder
|
# Remove Docker Buildx builder
|
||||||
docker-buildx rm buildx
|
docker buildx rm buildx
|
||||||
else
|
else
|
||||||
echo "No new commit, skipped build"
|
echo "No new commit, skipped build"
|
||||||
fi
|
fi
|
||||||
|
@ -15,11 +15,8 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: runner
|
runs-on: runner
|
||||||
container:
|
container:
|
||||||
image: docker:cli
|
image: git.opnxng.com/opnxng/docker-buildx:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install packages
|
|
||||||
run: apk --no-cache add curl git jq
|
|
||||||
|
|
||||||
- name: Check latest upstream commit
|
- name: Check latest upstream commit
|
||||||
run: |
|
run: |
|
||||||
STORED_COMMIT=$(curl -H "Authorization: Bearer ${{ secrets.NT }}" -s "https://nt.opnxng.com/${REPO_NAME}/raw?poll=1" | tail -n 1)
|
STORED_COMMIT=$(curl -H "Authorization: Bearer ${{ secrets.NT }}" -s "https://nt.opnxng.com/${REPO_NAME}/raw?poll=1" | tail -n 1)
|
||||||
@ -33,12 +30,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [ "$STORED_COMMIT" != "$LATEST_COMMIT" ]; then
|
if [ "$STORED_COMMIT" != "$LATEST_COMMIT" ]; then
|
||||||
echo "Found a new commit, building new image"
|
echo "Found a new commit, building new image"
|
||||||
# Install Docker Buildx
|
|
||||||
BUILDX_VERSION=$(wget -q -O- https://api.github.com/repos/docker/buildx/releases/latest | jq -r '.name')
|
|
||||||
wget -O /usr/bin/docker-buildx https://github.com/docker/buildx/releases/download/$BUILDX_VERSION/buildx-$BUILDX_VERSION.linux-arm64
|
|
||||||
chmod +x /usr/bin/docker-buildx
|
|
||||||
# Create and use Docker Buildx builder
|
# Create and use Docker Buildx builder
|
||||||
docker-buildx create --use --name buildx
|
docker buildx create --use --name buildx
|
||||||
# Login to Package Registry
|
# Login to Package Registry
|
||||||
echo "${{ secrets.TOKEN }}" | docker login git.opnxng.com -u ${{ gitea.repository_owner }} --password-stdin
|
echo "${{ secrets.TOKEN }}" | docker login git.opnxng.com -u ${{ gitea.repository_owner }} --password-stdin
|
||||||
# Build and push Docker image
|
# Build and push Docker image
|
||||||
@ -46,7 +39,7 @@ jobs:
|
|||||||
cd temp
|
cd temp
|
||||||
git clone ${REMOTE_REPO} .
|
git clone ${REMOTE_REPO} .
|
||||||
sed -i '/^RUN PATH="$HOME\/.cargo\/bin:$PATH" cargo run --manifest-path \.\/rust\/wolfree_libredirect_patch\/Cargo\.toml -- ;$/s/^#//' Dockerfile # Make Libredirect-compatible
|
sed -i '/^RUN PATH="$HOME\/.cargo\/bin:$PATH" cargo run --manifest-path \.\/rust\/wolfree_libredirect_patch\/Cargo\.toml -- ;$/s/^#//' Dockerfile # Make Libredirect-compatible
|
||||||
docker-buildx build \
|
docker buildx build \
|
||||||
--platform ${BUILD_PLATFORM} \
|
--platform ${BUILD_PLATFORM} \
|
||||||
-t git.opnxng.com/${{ gitea.repository_owner }}/${REPO_NAME}:latest \
|
-t git.opnxng.com/${{ gitea.repository_owner }}/${REPO_NAME}:latest \
|
||||||
-f ./Dockerfile \
|
-f ./Dockerfile \
|
||||||
@ -54,7 +47,7 @@ jobs:
|
|||||||
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
||||||
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
||||||
# Remove Docker Buildx builder
|
# Remove Docker Buildx builder
|
||||||
docker-buildx rm buildx
|
docker buildx rm buildx
|
||||||
else
|
else
|
||||||
echo "No new commit, skipped build"
|
echo "No new commit, skipped build"
|
||||||
fi
|
fi
|
||||||
|
@ -2,4 +2,3 @@ FROM docker:cli
|
|||||||
COPY --from=docker/buildx-bin /buildx /usr/libexec/docker/cli-plugins/docker-buildx
|
COPY --from=docker/buildx-bin /buildx /usr/libexec/docker/cli-plugins/docker-buildx
|
||||||
RUN apk add --no-cache curl git jq
|
RUN apk add --no-cache curl git jq
|
||||||
RUN rm -rf /var/cache/apk/*
|
RUN rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user