-
Notifications
You must be signed in to change notification settings - Fork 2
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
0 parents
commit cb3841a
Showing
11 changed files
with
1,010 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.git | ||
.gitignore | ||
.github | ||
.gitattributes | ||
READMETEMPLATE.md | ||
README.md |
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,17 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
|
||
# Custom for Visual Studio | ||
*.cs diff=csharp | ||
|
||
# Standard to msysgit | ||
*.doc diff=astextplain | ||
*.DOC diff=astextplain | ||
*.docx diff=astextplain | ||
*.DOCX diff=astextplain | ||
*.dot diff=astextplain | ||
*.DOT diff=astextplain | ||
*.pdf diff=astextplain | ||
*.PDF diff=astextplain | ||
*.rtf diff=astextplain | ||
*.RTF diff=astextplain |
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,30 @@ | ||
# This file is automatically generated (based on this file) | ||
|
||
# ~~~~~~~~~~~~~~~~~~~~~~~ | ||
# auto-builder.yml | ||
# ~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
TAGS='' | ||
LATEST='' | ||
|
||
BUILD_SCHEDULE='' | ||
BRANCH='main' | ||
DOCKERHUB_IMAGE='baseimage-alpine-glibc' | ||
APP_VERSION_LINK='' | ||
PLATFORMS='linux/amd64,linux/arm64,linux/arm/v7' | ||
APP_BRANCH='' | ||
BASE_OS='alpine' | ||
ON_RELEASE='true' | ||
VERSIONING='true' | ||
BUILD_ARGS='' | ||
TEST_SEARCH='' | ||
IMAGES='esphome/main amp/main' | ||
|
||
# ~~~~~~~~~~~~~~~~~~~~~~~ | ||
# auto-release.yml | ||
# ~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
RELEASE_SCHEDULE='10 0 * * 1-6' | ||
BEAUTY_NAME='glibc' | ||
# apostrophe needs be replaced with '\x27' | ||
RELEASE_VERSION_COMMAND='$(curl -sL "https://api.github.com/repos/sgerrand/alpine-pkg-glibc/releases/latest" | jq -r \x27.tag_name\x27)' |
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,95 @@ | ||
# This file is automatically generated | ||
|
||
name: Auto Builder CI | ||
|
||
on: | ||
workflow_dispatch: | ||
repository_dispatch: | ||
release: | ||
types: | ||
- released | ||
|
||
jobs: | ||
alpine-latest: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: main | ||
fetch-depth: 0 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
id: buildx | ||
|
||
- name: Docker Login | ||
uses: docker/login-action@v1 | ||
with: | ||
username: vcxpz | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Github Login | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "github-actions" | ||
- name: Build the Docker Image Locally (amd64) | ||
run: | | ||
docker buildx build \ | ||
--platform=amd64 \ | ||
--output "type=docker" \ | ||
--build-arg BUILD_DATE="$(date +%Y-%m-%d)" \ | ||
--build-arg VERSION=$(curl -sL "https://api.github.com/repos/hydazz/docker-baseimage-alpine-glibc/releases/latest" | jq -r '.tag_name') \ | ||
--tag vcxpz/ci-build:ci-build \ | ||
--file Dockerfile . | ||
- name: Build and Push the Docker Image | ||
run: | | ||
docker buildx build \ | ||
--platform=linux/amd64,linux/arm64,linux/arm/v7 \ | ||
--output "type=image,push=true" \ | ||
--build-arg BUILD_DATE="$(date +%Y-%m-%d)" \ | ||
--build-arg VERSION=$(curl -sL "https://api.github.com/repos/hydazz/docker-baseimage-alpine-glibc/releases/latest" | jq -r '.tag_name') \ | ||
--tag vcxpz/baseimage-alpine-glibc:$(curl -sL "https://api.github.com/repos/hydazz/docker-baseimage-alpine-glibc/releases/latest" | jq -r '.tag_name') \ | ||
--tag vcxpz/baseimage-alpine-glibc:latest \ | ||
--file Dockerfile . | ||
- name: Get New Package Versions From Image | ||
run: | | ||
docker run --rm --entrypoint /bin/sh -v ${PWD}:/tmp vcxpz/ci-build:ci-build -c '\ | ||
curl -sSL https://raw.githubusercontent.com/hydazz/docker-utils/main/scripts/package_versioner.sh | bash' | ||
- name: Commit and Push Changes to Github | ||
run: | | ||
git add -A | ||
git commit -m "Bot Updating Files" || true | ||
git push || true | ||
- name: Sync README.md With Docker Hub | ||
uses: peter-evans/dockerhub-description@v2 | ||
with: | ||
username: vcxpz | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
repository: vcxpz/baseimage-alpine-glibc | ||
|
||
- name: Trigger Images | ||
env: | ||
TOKEN: ${{ secrets.TOKEN }} | ||
run: | | ||
. .github/vars.conf | ||
for i in ${IMAGES}; do | ||
BRANCH=${i/*\//} | ||
REPO=${i/\/*/} | ||
echo "ℹ️ Triggering build for ${i}" | ||
curl -sqf \ | ||
-H "Accept: application/vnd.github.v3+json" \ | ||
-H "Authorization: token ${TOKEN}" \ | ||
--request POST \ | ||
--data '{"ref": "'${BRANCH}'"}' \ | ||
https://api.github.com/repos/hydazz/docker-${REPO}/actions/workflows/auto-builder.yml/dispatches | ||
done | ||
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,33 @@ | ||
# This file is automatically generated | ||
|
||
name: Auto Release CI | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "10 0 * * 1-6" | ||
|
||
jobs: | ||
check-for-updates: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Create Version | ||
env: | ||
TOKEN: ${{ secrets.TOKEN }} | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "github-actions" | ||
VERSION=$(curl -sL "https://api.github.com/repos/sgerrand/alpine-pkg-glibc/releases/latest" | jq -r '.tag_name') | ||
OLD_VERSION=$(curl -sL "https://api.github.com/repos/hydazz/docker-baseimage-alpine-glibc/releases/latest" | jq -r '.tag_name') | ||
printf '{ | ||
"tag_name": "'${VERSION}'", | ||
"target_commitish": "'${main}'", | ||
"name": "'${VERSION}'", | ||
"body": "Upgrading glibc '${OLD_VERSION}' to '${VERSION}'", | ||
"draft": false, | ||
"prerelease": false | ||
}' >releasebody.json | ||
curl -H "Authorization: token ${TOKEN}" -X POST https://api.github.com/repos/hydazz/docker-baseimage-alpine-glibc/releases -d @releasebody.json | ||
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,30 @@ | ||
# This file is automatically generated | ||
|
||
name: Clear Workflow Runs CI | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * 0" | ||
|
||
jobs: | ||
clear-workflow-runs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Clear all workflow runs | ||
env: | ||
TOKEN: ${{ secrets.TOKEN }} | ||
run: | | ||
echo "${TOKEN}" | gh auth login --with-token | ||
runs=$(gh api repos/hydazz/docker-baseimage-alpine-glibc/actions/runs | jq -r .total_count) | ||
while true; do | ||
if [[ $(gh api repos/hydazz/docker-baseimage-alpine-glibc/actions/runs | jq -r .total_count) -gt 2 ]]; then | ||
gh api repos/hydazz/docker-baseimage-alpine-glibc/actions/runs \ | ||
--paginate -q '.workflow_runs[] | "\(.id)"' | \ | ||
xargs -n1 -I % gh api repos/hydazz/docker-baseimage-alpine-glibc/actions/runs/% -X DELETE || true | ||
else | ||
exit 0 | ||
fi | ||
done |
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,43 @@ | ||
# Windows image file caches | ||
Thumbs.db | ||
ehthumbs.db | ||
|
||
# Folder config file | ||
Desktop.ini | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# Windows Installer files | ||
*.cab | ||
*.msi | ||
*.msm | ||
*.msp | ||
|
||
# Windows shortcuts | ||
*.lnk | ||
|
||
# ========================= | ||
# Operating System Files | ||
# ========================= | ||
|
||
# OSX | ||
# ========================= | ||
|
||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear on external disk | ||
.Spotlight-V100 | ||
.Trashes | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk |
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,30 @@ | ||
FROM vcxpz/baseimage-alpine:latest | ||
|
||
# environment settings | ||
ARG VERSION | ||
ENV LANG=C.UTF-8 | ||
|
||
RUN set -xe && \ | ||
curl -o \ | ||
/etc/apk/keys/sgerrand.rsa.pub \ | ||
"https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub" && \ | ||
curl -o \ | ||
/tmp/glibc-${VERSION}.apk -L \ | ||
"https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${VERSION}/glibc-${VERSION}.apk" && \ | ||
curl -o \ | ||
/tmp/glibc-bin-${VERSION}.apk -L \ | ||
"https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${VERSION}/glibc-bin-${VERSION}.apk" && \ | ||
curl -o \ | ||
/tmp/glibc-i18n-${VERSION}.apk -L \ | ||
"https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${VERSION}/glibc-i18n-${VERSION}.apk" && \ | ||
echo "**** install runtime packages ****" && \ | ||
apk add --no-cache \ | ||
/tmp/*.apk && \ | ||
/usr/glibc-compat/bin/localedef --force --inputfile POSIX --charmap UTF-8 "$LANG" || true && \ | ||
echo "export LANG=$LANG" >/etc/profile.d/locale.sh && \ | ||
echo "**** cleanup ****" && \ | ||
apk del \ | ||
glibc-i18n && \ | ||
rm -rf \ | ||
/etc/apk/keys/sgerrand.rsa.pub \ | ||
/tmp/* |
Oops, something went wrong.