mirror of
https://github.com/tarampampam/error-pages.git
synced 2024-08-30 18:22:40 +00:00
Update CI
This commit is contained in:
parent
2fa41ec4b8
commit
a73173309c
20
.github/workflows/release.yml
vendored
20
.github/workflows/release.yml
vendored
@ -34,6 +34,7 @@ jobs:
|
||||
with:
|
||||
name: content
|
||||
path: out/
|
||||
retention-days: 1
|
||||
|
||||
- name: Switch to github pages branch
|
||||
uses: actions/checkout@v2
|
||||
@ -73,11 +74,18 @@ jobs:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1 # Action page: <https://github.com/docker/setup-buildx-action>
|
||||
|
||||
- name: Docker login in default registry
|
||||
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_LOGIN }}" --password-stdin
|
||||
- name: Login to default Container Registry
|
||||
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>
|
||||
run: echo "${{ secrets.GHCR_PASSWORD }}" | docker login ghcr.io -u tarampampam --password-stdin
|
||||
- name: Login to GitHub Container Registry
|
||||
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
|
||||
id: values
|
||||
@ -89,8 +97,8 @@ jobs:
|
||||
--platform "linux/amd64,linux/arm64/v8,linux/arm/v6,linux/arm/v7" \
|
||||
--tag "tarampampam/error-pages:${{ steps.values.outputs.version }}" \
|
||||
--tag "tarampampam/error-pages:latest" \
|
||||
--tag "ghcr.io/tarampampam/error-pages:${{ steps.values.outputs.version }}" \
|
||||
--tag "ghcr.io/tarampampam/error-pages:latest" \
|
||||
--tag "ghcr.io/${{ github.actor }}/error-pages:${{ steps.values.outputs.version }}" \
|
||||
--tag "ghcr.io/${{ github.actor }}/error-pages:latest" \
|
||||
--file ./Dockerfile \
|
||||
--push \
|
||||
.
|
||||
|
Loading…
x
Reference in New Issue
Block a user