mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
[gha] update docker build workflow
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
ad5540c9f3
commit
126ca0209b
25
.github/workflows/docker.yml
vendored
25
.github/workflows/docker.yml
vendored
@ -57,6 +57,7 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
purplei2p/i2pd:latest-${{ matrix.archname }}
|
purplei2p/i2pd:latest-${{ matrix.archname }}
|
||||||
ghcr.io/purplei2p/i2pd:latest-${{ matrix.archname }}
|
ghcr.io/purplei2p/i2pd:latest-${{ matrix.archname }}
|
||||||
|
provenance: false
|
||||||
|
|
||||||
push:
|
push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -92,15 +93,15 @@ jobs:
|
|||||||
- name: Create and push latest manifest image to Docker Hub
|
- name: Create and push latest manifest image to Docker Hub
|
||||||
uses: Noelware/docker-manifest-action@master
|
uses: Noelware/docker-manifest-action@master
|
||||||
with:
|
with:
|
||||||
base-image: purplei2p/i2pd:latest
|
images: purplei2p/i2pd:latest
|
||||||
extra-images: purplei2p/i2pd:latest-amd64,purplei2p/i2pd:latest-i386,purplei2p/i2pd:latest-arm64,purplei2p/i2pd:latest-armv7
|
inputs: purplei2p/i2pd:latest-amd64,purplei2p/i2pd:latest-i386,purplei2p/i2pd:latest-arm64,purplei2p/i2pd:latest-armv7
|
||||||
push: true
|
push: true
|
||||||
|
|
||||||
- name: Create and push latest manifest image to GHCR
|
- name: Create and push latest manifest image to GHCR
|
||||||
uses: Noelware/docker-manifest-action@master
|
uses: Noelware/docker-manifest-action@master
|
||||||
with:
|
with:
|
||||||
base-image: ghcr.io/purplei2p/i2pd:latest
|
images: ghcr.io/purplei2p/i2pd:latest
|
||||||
extra-images: ghcr.io/purplei2p/i2pd:latest-amd64,ghcr.io/purplei2p/i2pd:latest-i386,ghcr.io/purplei2p/i2pd:latest-arm64,ghcr.io/purplei2p/i2pd:latest-armv7
|
inputs: ghcr.io/purplei2p/i2pd:latest-amd64,ghcr.io/purplei2p/i2pd:latest-i386,ghcr.io/purplei2p/i2pd:latest-arm64,ghcr.io/purplei2p/i2pd:latest-armv7
|
||||||
push: true
|
push: true
|
||||||
|
|
||||||
- name: Store release version to env
|
- name: Store release version to env
|
||||||
@ -111,30 +112,30 @@ jobs:
|
|||||||
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
||||||
uses: Noelware/docker-manifest-action@master
|
uses: Noelware/docker-manifest-action@master
|
||||||
with:
|
with:
|
||||||
base-image: purplei2p/i2pd:latest-release
|
images: purplei2p/i2pd:latest-release
|
||||||
extra-images: purplei2p/i2pd:latest-amd64,purplei2p/i2pd:latest-i386,purplei2p/i2pd:latest-arm64,purplei2p/i2pd:latest-armv7
|
inputs: purplei2p/i2pd:latest-amd64,purplei2p/i2pd:latest-i386,purplei2p/i2pd:latest-arm64,purplei2p/i2pd:latest-armv7
|
||||||
push: true
|
push: true
|
||||||
|
|
||||||
- name: Create and push release manifest image to GHCR
|
- name: Create and push release manifest image to GHCR
|
||||||
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
||||||
uses: Noelware/docker-manifest-action@master
|
uses: Noelware/docker-manifest-action@master
|
||||||
with:
|
with:
|
||||||
base-image: ghcr.io/purplei2p/i2pd:latest-release
|
images: ghcr.io/purplei2p/i2pd:latest-release
|
||||||
extra-images: ghcr.io/purplei2p/i2pd:latest-amd64,ghcr.io/purplei2p/i2pd:latest-i386,ghcr.io/purplei2p/i2pd:latest-arm64,ghcr.io/purplei2p/i2pd:latest-armv7
|
inputs: ghcr.io/purplei2p/i2pd:latest-amd64,ghcr.io/purplei2p/i2pd:latest-i386,ghcr.io/purplei2p/i2pd:latest-arm64,ghcr.io/purplei2p/i2pd:latest-armv7
|
||||||
push: true
|
push: true
|
||||||
|
|
||||||
- name: Create and push versioned manifest image to Docker Hub
|
- name: Create and push versioned manifest image to Docker Hub
|
||||||
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
||||||
uses: Noelware/docker-manifest-action@master
|
uses: Noelware/docker-manifest-action@master
|
||||||
with:
|
with:
|
||||||
base-image: purplei2p/i2pd:release-${{ env.RELEASE_VERSION }}
|
images: purplei2p/i2pd:release-${{ env.RELEASE_VERSION }}
|
||||||
extra-images: purplei2p/i2pd:latest-amd64,purplei2p/i2pd:latest-i386,purplei2p/i2pd:latest-arm64,purplei2p/i2pd:latest-armv7
|
inputs: purplei2p/i2pd:latest-amd64,purplei2p/i2pd:latest-i386,purplei2p/i2pd:latest-arm64,purplei2p/i2pd:latest-armv7
|
||||||
push: true
|
push: true
|
||||||
|
|
||||||
- name: Create and push versioned manifest image to GHCR
|
- name: Create and push versioned manifest image to GHCR
|
||||||
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
||||||
uses: Noelware/docker-manifest-action@master
|
uses: Noelware/docker-manifest-action@master
|
||||||
with:
|
with:
|
||||||
base-image: ghcr.io/purplei2p/i2pd:release-${{ env.RELEASE_VERSION }}
|
images: ghcr.io/purplei2p/i2pd:release-${{ env.RELEASE_VERSION }}
|
||||||
extra-images: ghcr.io/purplei2p/i2pd:latest-amd64,ghcr.io/purplei2p/i2pd:latest-i386,ghcr.io/purplei2p/i2pd:latest-arm64,ghcr.io/purplei2p/i2pd:latest-armv7
|
inputs: ghcr.io/purplei2p/i2pd:latest-amd64,ghcr.io/purplei2p/i2pd:latest-i386,ghcr.io/purplei2p/i2pd:latest-arm64,ghcr.io/purplei2p/i2pd:latest-armv7
|
||||||
push: true
|
push: true
|
||||||
|
Loading…
Reference in New Issue
Block a user