mirror of
https://github.com/tarampampam/error-pages.git
synced 2024-08-30 18:22:40 +00:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
501d141ce7 | |||
8c2155407a | |||
a73173309c | |||
2fa41ec4b8 |
20
.github/workflows/release.yml
vendored
20
.github/workflows/release.yml
vendored
@ -34,6 +34,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: content
|
name: content
|
||||||
path: out/
|
path: out/
|
||||||
|
retention-days: 1
|
||||||
|
|
||||||
- name: Switch to github pages branch
|
- name: Switch to github pages branch
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -73,11 +74,18 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1 # Action page: <https://github.com/docker/setup-buildx-action>
|
uses: docker/setup-buildx-action@v1 # Action page: <https://github.com/docker/setup-buildx-action>
|
||||||
|
|
||||||
- name: Docker login in default registry
|
- name: Login to default Container Registry
|
||||||
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_LOGIN }}" --password-stdin
|
uses: docker/login-action@v1 # Action page: <https://github.com/docker/login-action>
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_LOGIN }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
- name: Docker login in ghcr.io # Auth docs: <https://git.io/JLDaw>
|
- name: Login to GitHub Container Registry
|
||||||
run: echo "${{ secrets.GHCR_PASSWORD }}" | docker login ghcr.io -u tarampampam --password-stdin
|
uses: docker/login-action@v1 # Action page: <https://github.com/docker/login-action>
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GHCR_PASSWORD }}
|
||||||
|
|
||||||
- name: Generate builder values
|
- name: Generate builder values
|
||||||
id: values
|
id: values
|
||||||
@ -89,8 +97,8 @@ jobs:
|
|||||||
--platform "linux/amd64,linux/arm64/v8,linux/arm/v6,linux/arm/v7" \
|
--platform "linux/amd64,linux/arm64/v8,linux/arm/v6,linux/arm/v7" \
|
||||||
--tag "tarampampam/error-pages:${{ steps.values.outputs.version }}" \
|
--tag "tarampampam/error-pages:${{ steps.values.outputs.version }}" \
|
||||||
--tag "tarampampam/error-pages:latest" \
|
--tag "tarampampam/error-pages:latest" \
|
||||||
--tag "ghcr.io/tarampampam/error-pages:${{ steps.values.outputs.version }}" \
|
--tag "ghcr.io/${{ github.actor }}/error-pages:${{ steps.values.outputs.version }}" \
|
||||||
--tag "ghcr.io/tarampampam/error-pages:latest" \
|
--tag "ghcr.io/${{ github.actor }}/error-pages:latest" \
|
||||||
--file ./Dockerfile \
|
--file ./Dockerfile \
|
||||||
--push \
|
--push \
|
||||||
.
|
.
|
||||||
|
@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file.
|
|||||||
|
|
||||||
The format is based on [Keep a Changelog][keepachangelog] and this project adheres to [Semantic Versioning][semver].
|
The format is based on [Keep a Changelog][keepachangelog] and this project adheres to [Semantic Versioning][semver].
|
||||||
|
|
||||||
|
## v1.7.2
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Nginx updated up to `1.21` (from `1.19`)
|
||||||
|
|
||||||
## v1.7.1
|
## v1.7.1
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
@ -30,7 +30,7 @@ RUN set -x \
|
|||||||
&& mv /src/docker/nginx-server.conf ./etc/nginx/conf.d/default.conf
|
&& mv /src/docker/nginx-server.conf ./etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
# Image page: <https://hub.docker.com/_/nginx>
|
# Image page: <https://hub.docker.com/_/nginx>
|
||||||
FROM --platform=${TARGETPLATFORM:-linux/amd64} nginx:1.19-alpine as runtime
|
FROM nginx:1.21-alpine as runtime
|
||||||
|
|
||||||
LABEL \
|
LABEL \
|
||||||
# Docs: <https://github.com/opencontainers/image-spec/blob/master/annotations.md>
|
# Docs: <https://github.com/opencontainers/image-spec/blob/master/annotations.md>
|
||||||
|
@ -47,13 +47,15 @@ Also, you can use a special template name `random` - in this case template will
|
|||||||
|
|
||||||
### Ready docker image
|
### Ready docker image
|
||||||
|
|
||||||
|
[][link_docker_hub]
|
||||||
|
|
||||||
Execute in your shell:
|
Execute in your shell:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker run --rm -p "8082:8080" tarampampam/error-pages:X.X.X
|
$ docker run --rm -p "8082:8080" tarampampam/error-pages:X.X.X
|
||||||
```
|
```
|
||||||
|
|
||||||
> Important notice: do **not** use the `latest` image tag _(this is bad practice)_. Use versioned tag (like `1.2.3`) instead.
|
> Important notice: do **not** use the `latest` image tag _(this is bad practice)_. Use versioned tag (like `1.2.3`) instead. Docker hub mirror located [here (ghcr.io)][link_ghcr].
|
||||||
|
|
||||||
And open in your browser `http://127.0.0.1:8082/ghost/400.html`.
|
And open in your browser `http://127.0.0.1:8082/ghost/400.html`.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user