generated from snowdreamtech/alpine
-
Notifications
You must be signed in to change notification settings - Fork 0
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 9f38a8a
Showing
10 changed files
with
1,594 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,31 @@ | ||
debug = true | ||
|
||
[registry."docker.io"] | ||
mirrors = ["https://docker.sn0wdr1am.com"] | ||
|
||
[registry."quay.io"] | ||
mirrors = ["https://quay.sn0wdr1am.com"] | ||
|
||
[registry."gcr.io"] | ||
mirrors = ["https://gcr.sn0wdr1am.com"] | ||
|
||
[registry."k8s.gcr.io"] | ||
mirrors = ["https://k8s-gcr.sn0wdr1am.com"] | ||
|
||
[registry."k8s.io"] | ||
mirrors = ["https://k8s.sn0wdr1am.com"] | ||
|
||
[registry."ghcr.io"] | ||
mirrors = ["https://ghcr.sn0wdr1am.com"] | ||
|
||
[registry."cloudsmith.io"] | ||
mirrors = ["https://cloudsmith.sn0wdr1am.com"] | ||
|
||
[registry."ecr.aws"] | ||
mirrors = ["https://ecr.sn0wdr1am.com"] | ||
|
||
[worker.oci] | ||
max-parallelism = 2 | ||
|
||
|
||
|
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,76 @@ | ||
name: GitHub Actions Continuous Delivery | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- '*' | ||
workflow_dispatch: | ||
jobs: | ||
buildx: | ||
runs-on: 1H1G | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v4.1.7 | ||
with: | ||
# [Required] Access token with `workflow` scope. | ||
token: ${{ secrets.WORKFLOW_SECRET }} | ||
- | ||
name: Set env variables | ||
run: | | ||
echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV | ||
echo "http_proxy=${http_proxy}" >> $GITHUB_ENV | ||
echo "no_proxy=${no_proxy}" >> $GITHUB_ENV | ||
- | ||
# Add support for more platforms with QEMU (optional) | ||
# https://github.com/docker/setup-qemu-action | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3.1.0 | ||
- | ||
# https://github.com/docker/setup-buildx-action/issues/57#issuecomment-1059657292 | ||
# https://github.com/docker/buildx/issues/136#issuecomment-550205439 | ||
# docker buildx create --driver-opt env.http_proxy=$http_proxy --driver-opt env.https_proxy=$https_proxy --driver-opt '"env.no_proxy='$no_proxy'"' | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3.4.0 | ||
with: | ||
buildkitd-config: .github/buildkitd.toml | ||
driver-opts: | | ||
env.http_proxy=${{ env.http_proxy }} | ||
env.https_proxy=${{ env.http_proxy }} | ||
env.no_proxy=${{ env.no_proxy }} | ||
- | ||
name: Login to DockerHub | ||
uses: docker/login-action@v3.2.0 | ||
with: | ||
username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | ||
- | ||
name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3.2.0 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- | ||
name: Build and push | ||
uses: docker/build-push-action@v6.4.1 | ||
with: | ||
context: . | ||
build-args: | | ||
http_proxy=${{ env.http_proxy }} | ||
https_proxy=${{ env.http_proxy }} | ||
env.no_proxy=${{ env.no_proxy }} | ||
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/riscv64,linux/s390x | ||
push: true | ||
tags: | | ||
snowdreamtech/alpine:latest | ||
snowdreamtech/alpine:3.20.0 | ||
snowdreamtech/alpine:3.20 | ||
snowdreamtech/alpine:3 | ||
ghcr.io/snowdreamtech/alpine:latest | ||
ghcr.io/snowdreamtech/alpine:3.20.0 | ||
ghcr.io/snowdreamtech/alpine:3.20 | ||
ghcr.io/snowdreamtech/alpine:3 | ||
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,27 @@ | ||
name: GitHub Actions Version Updater | ||
|
||
# Controls when the action will run. | ||
on: | ||
# can be used to run workflow manually | ||
workflow_dispatch: | ||
schedule: | ||
# Automatically run on every Day | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v4.1.7 | ||
with: | ||
# [Required] Access token with `workflow` scope. | ||
token: ${{ secrets.WORKFLOW_SECRET }} | ||
- | ||
name: Run GitHub Actions Version Updater | ||
uses: saadmk11/github-actions-version-updater@v0.8.1 | ||
with: | ||
# [Required] Access token with `workflow` scope. | ||
token: ${{ secrets.WORKFLOW_SECRET }} |
Oops, something went wrong.