mirror of
https://github.com/N0rthernL1ghts/s6-rootfs.git
synced 2024-11-23 09:41:10 +01:00
Add support for ghcr.io
This commit is contained in:
parent
11076e36e5
commit
bd27824a51
7
.github/workflows/image.yml
vendored
7
.github/workflows/image.yml
vendored
|
@ -27,6 +27,13 @@ jobs:
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Login to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{github.actor}}
|
||||||
|
password: ${{secrets.PAT_TOKEN}}
|
||||||
-
|
-
|
||||||
name: Build and push
|
name: Build and push
|
||||||
uses: docker/bake-action@v2.3.0
|
uses: docker/bake-action@v2.3.0
|
||||||
|
|
10
README.md
10
README.md
|
@ -4,15 +4,18 @@ The simplest and fastest way to get S6 supervisor in your image
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
```Docker
|
```Docker
|
||||||
COPY --from=nlss/s6-rootfs:latest ["/", "/"]
|
COPY --from=ghcr.io/n0rthernl1ghts/s6-rootfs:latest ["/", "/"]
|
||||||
```
|
```
|
||||||
or with fixed version:
|
or with fixed version:
|
||||||
```Docker
|
```Docker
|
||||||
COPY --from=nlss/s6-rootfs:3.1.2.1 ["/", "/"]
|
COPY --from=ghcr.io/n0rthernl1ghts/s6-rootfs:3.1.2.1 ["/", "/"]
|
||||||
```
|
```
|
||||||
|
|
||||||
That's it!
|
That's it!
|
||||||
|
|
||||||
|
Note: We're moving to ghcr.io. `docker.io/nlss/s6-rootfs` will be kept up-to-date until May 2023, when is Docker sunsetting free teams.<br/>
|
||||||
|
It is highly recommended that you start using `ghcr.io/n0rthernl1ghts/s6-rootfs`.
|
||||||
|
|
||||||
###### Recommended way to integrate with your image (example)
|
###### Recommended way to integrate with your image (example)
|
||||||
```Docker
|
```Docker
|
||||||
# ---------------------
|
# ---------------------
|
||||||
|
@ -24,7 +27,7 @@ FROM scratch AS rootfs
|
||||||
COPY ["./rootfs", "/"]
|
COPY ["./rootfs", "/"]
|
||||||
|
|
||||||
# Install S6
|
# Install S6
|
||||||
COPY --from=nlss/s6-rootfs:3.1.2.1 ["/", "/"]
|
COPY --from=ghcr.io/n0rthernl1ghts/s6-rootfs:3.1.2.1 ["/", "/"]
|
||||||
|
|
||||||
|
|
||||||
# ---------------------
|
# ---------------------
|
||||||
|
@ -44,4 +47,3 @@ ENV S6_CMD_RECEIVE_SIGNALS=1
|
||||||
# Important, this is required for S6 to work
|
# Important, this is required for S6 to work
|
||||||
ENTRYPOINT ["/init"]
|
ENTRYPOINT ["/init"]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -68,11 +68,13 @@ function "get-tags" {
|
||||||
params = [version, extra_versions]
|
params = [version, extra_versions]
|
||||||
result = concat(
|
result = concat(
|
||||||
[
|
[
|
||||||
"docker.io/nlss/s6-rootfs:${version}"
|
"docker.io/nlss/s6-rootfs:${version}",
|
||||||
|
"ghcr.io/n0rthernl1ghts/s6-rootfs:${version}"
|
||||||
],
|
],
|
||||||
flatten([
|
flatten([
|
||||||
for extra_version in extra_versions : [
|
for extra_version in extra_versions : [
|
||||||
"docker.io/nlss/s6-rootfs:${extra_version}"
|
"docker.io/nlss/s6-rootfs:${extra_version}",
|
||||||
|
"ghcr.io/n0rthernl1ghts/s6-rootfs:${extra_version}"
|
||||||
]
|
]
|
||||||
])
|
])
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user