mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-11 00:05:36 +02:00
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5 to 6. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/docker/build-push-action/releases">docker/build-push-action's releases</a>.</em></p> <blockquote> <h2>v6.0.0</h2> <ul> <li>Export build record and generate <a href="https://docs.docker.com/build/ci/github-actions/build-summary/">build summary</a> by <a href="https://github.com/crazy-max"><code>@crazy-max</code></a> in <a href="https://redirect.github.com/docker/build-push-action/pull/1120">docker/build-push-action#1120</a></li> <li>Bump <code>@docker/actions-toolkit</code> from 0.24.0 to 0.26.0 in <a href="https://redirect.github.com/docker/build-push-action/pull/1132">docker/build-push-action#1132</a> <a href="https://redirect.github.com/docker/build-push-action/pull/1136">docker/build-push-action#1136</a> <a href="https://redirect.github.com/docker/build-push-action/pull/1138">docker/build-push-action#1138</a></li> <li>Bump braces from 3.0.2 to 3.0.3 in <a href="https://redirect.github.com/docker/build-push-action/pull/1137">docker/build-push-action#1137</a></li> </ul> <blockquote> <p>[!NOTE] This major release adds support for generating <a href="https://docs.docker.com/build/ci/github-actions/build-summary/">Build summary</a> and exporting build record for your build. You can disable this feature by setting <a href="https://docs.docker.com/build/ci/github-actions/build-summary/#disable-job-summary"> <code>DOCKER_BUILD_NO_SUMMARY: true</code> environment variable in your workflow</a>.</p> </blockquote> <p><strong>Full Changelog</strong>: <a href="https://github.com/docker/build-push-action/compare/v5.4.0...v6.0.0">https://github.com/docker/build-push-action/compare/v5.4.0...v6.0.0</a></p> <h2>v5.4.0</h2> <ul> <li>Show builder information before building by <a href="https://github.com/crazy-max"><code>@crazy-max</code></a> in <a href="https://redirect.github.com/docker/build-push-action/pull/1128">docker/build-push-action#1128</a></li> <li>Handle attestations correctly with provenance and sbom inputs by <a href="https://github.com/crazy-max"><code>@crazy-max</code></a> in <a href="https://redirect.github.com/docker/build-push-action/pull/1086">docker/build-push-action#1086</a></li> <li>Bump <code>@docker/actions-toolkit</code> from 0.19.0 to 0.24.0 in <a href="https://redirect.github.com/docker/build-push-action/pull/1088">docker/build-push-action#1088</a> <a href="https://redirect.github.com/docker/build-push-action/pull/1105">docker/build-push-action#1105</a> <a href="https://redirect.github.com/docker/build-push-action/pull/1121">docker/build-push-action#1121</a> <a href="https://redirect.github.com/docker/build-push-action/pull/1127">docker/build-push-action#1127</a></li> <li>Bump undici from 5.28.3 to 5.28.4 in <a href="https://redirect.github.com/docker/build-push-action/pull/1090">docker/build-push-action#1090</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/docker/build-push-action/compare/v5.3.0...v5.4.0">https://github.com/docker/build-push-action/compare/v5.3.0...v5.4.0</a></p> <h2>v5.3.0</h2> <ul> <li>Bump <code>@docker/actions-toolkit</code> from 0.18.0 to 0.19.0 in <a href="https://redirect.github.com/docker/build-push-action/pull/1080">docker/build-push-action#1080</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/docker/build-push-action/compare/v5.2.0...v5.3.0">https://github.com/docker/build-push-action/compare/v5.2.0...v5.3.0</a></p> <h2>v5.2.0</h2> <ul> <li>Disable quotes detection for <code>outputs</code> input by <a href="https://github.com/crazy-max"><code>@crazy-max</code></a> in <a href="https://redirect.github.com/docker/build-push-action/pull/1074">docker/build-push-action#1074</a></li> <li>Warn about ignored inputs by <a href="https://github.com/favonia"><code>@favonia</code></a> in <a href="https://redirect.github.com/docker/build-push-action/pull/1019">docker/build-push-action#1019</a></li> <li>Bump <code>@docker/actions-toolkit</code> from 0.14.0 to 0.18.0 in <a href="https://redirect.github.com/docker/build-push-action/pull/1070">docker/build-push-action#1070</a></li> <li>Bump undici from 5.26.3 to 5.28.3 in <a href="https://redirect.github.com/docker/build-push-action/pull/1057">docker/build-push-action#1057</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/docker/build-push-action/compare/v5.1.0...v5.2.0">https://github.com/docker/build-push-action/compare/v5.1.0...v5.2.0</a></p> <h2>v5.1.0</h2> <ul> <li>Add <code>annotations</code> input by <a href="https://github.com/crazy-max"><code>@crazy-max</code></a> in <a href="https://redirect.github.com/docker/build-push-action/pull/992">docker/build-push-action#992</a></li> <li>Add <code>secret-envs</code> input by <a href="https://github.com/elias-lundgren"><code>@elias-lundgren</code></a> in <a href="https://redirect.github.com/docker/build-push-action/pull/980">docker/build-push-action#980</a></li> <li>Bump <code>@babel/traverse</code> from 7.17.3 to 7.23.2 in <a href="https://redirect.github.com/docker/build-push-action/pull/991">docker/build-push-action#991</a></li> <li>Bump <code>@docker/actions-toolkit</code> from 0.13.0-rc.1 to 0.14.0 in <a href="https://redirect.github.com/docker/build-push-action/pull/990">docker/build-push-action#990</a> <a href="https://redirect.github.com/docker/build-push-action/pull/1006">docker/build-push-action#1006</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/docker/build-push-action/compare/v5.0.0...v5.1.0">https://github.com/docker/build-push-action/compare/v5.0.0...v5.1.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="c382f710d3"><code>c382f71</code></a> Merge pull request <a href="https://redirect.github.com/docker/build-push-action/issues/1120">#1120</a> from crazy-max/build-summary</li> <li><a href="5a5b70d974"><code>5a5b70d</code></a> chore: update generated content</li> <li><a href="dc24cf9e25"><code>dc24cf9</code></a> don't generate summary for cloud driver</li> <li><a href="667cb22c52"><code>667cb22</code></a> DOCKER_BUILD_NO_SUMMARY env to disable summary</li> <li><a href="d880b1964b"><code>d880b19</code></a> generate build summary</li> <li><a href="e51051ad0b"><code>e51051a</code></a> export build record and upload artifact</li> <li><a href="86c2bd0031"><code>86c2bd0</code></a> Merge pull request <a href="https://redirect.github.com/docker/build-push-action/issues/1137">#1137</a> from docker/dependabot/npm_and_yarn/braces-3.0.3</li> <li><a href="268d2b1611"><code>268d2b1</code></a> Merge pull request <a href="https://redirect.github.com/docker/build-push-action/issues/1138">#1138</a> from docker/dependabot/npm_and_yarn/docker/actions-t...</li> <li><a href="2b8dc7f529"><code>2b8dc7f</code></a> chore: update generated content</li> <li><a href="840c12be17"><code>840c12b</code></a> chore(deps): Bump <code>@docker/actions-toolkit</code> from 0.25.1 to 0.26.0</li> <li>Additional commits viewable in <a href="https://github.com/docker/build-push-action/compare/v5...v6">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Wanjohi <71614375+wanjohiryan@users.noreply.github.com>
234 lines
7.9 KiB
YAML
234 lines
7.9 KiB
YAML
#Tabs not spaces, you moron :)
|
|
|
|
name: CI for netris:warp
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "warp.Dockerfile"
|
|
- ".github/workflows/warp.yml"
|
|
schedule:
|
|
- cron: 0 0 * * * # At the end of everyday
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "warp.Dockerfile"
|
|
- ".github/workflows/warp.yml"
|
|
tags:
|
|
- v*.*.*
|
|
release:
|
|
types: [published, created]
|
|
|
|
env:
|
|
REGISTRY: ghcr.io
|
|
IMAGE_NAME: nestriness/nestri
|
|
BASE_TAG_PREFIX: warp
|
|
|
|
# concurrency:
|
|
# group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.event.pull_request.number || github.ref }}
|
|
# cancel-in-progress: true
|
|
|
|
jobs:
|
|
build-docker-pr:
|
|
name: Build image on pr
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.event_name == 'pull_request' }}
|
|
steps:
|
|
-
|
|
name: Checkout repo
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
-
|
|
name: Setup Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
-
|
|
name: Build Docker image
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
file: warp.Dockerfile
|
|
context: ./
|
|
push: false
|
|
load: true
|
|
tags: netris:warp
|
|
|
|
build-docker-main:
|
|
name: Build image on merge to main
|
|
if: ${{github.ref == 'refs/heads/main'}}
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
steps:
|
|
-
|
|
name: Checkout repo
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
-
|
|
name: Log into registry ${{ env.REGISTRY }}
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ${{ env.REGISTRY }}
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GIT_MASTER_TOKEN }}
|
|
-
|
|
name: Extract Container metadata
|
|
id: meta
|
|
uses: docker/metadata-action@v5
|
|
with:
|
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/${{ env.BASE_TAG_PREFIX }}
|
|
#
|
|
#tag on release, and a nightly build for 'dev'
|
|
tags: |
|
|
type=raw,value=nightly,enable={{is_default_branch}}
|
|
type=ref,event=tag
|
|
type=semver,pattern={{version}}
|
|
type=semver,pattern={{major}}.{{minor}}
|
|
type=semver,pattern={{major}}
|
|
-
|
|
name: Build Docker image
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
file: warp.Dockerfile
|
|
context: ./
|
|
push: true
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
labels: ${{ steps.meta.outputs.labels }}
|
|
|
|
build-docker-release:
|
|
name: Build image on release
|
|
if: ${{ github.event_name == 'release' }}
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
steps:
|
|
-
|
|
name: Checkout repo
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
-
|
|
name: Log into registry ${{ env.REGISTRY }}
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ${{ env.REGISTRY }}
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GIT_MASTER_TOKEN }}
|
|
-
|
|
name: Extract Container metadata
|
|
id: meta
|
|
uses: docker/metadata-action@v5
|
|
with:
|
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/${{ env.BASE_TAG_PREFIX }}
|
|
#
|
|
#tag on release, and a nightly build for 'dev'
|
|
tags: |
|
|
type=raw,value=nightly,enable={{is_default_branch}}
|
|
type=ref,event=tag
|
|
type=semver,pattern={{version}}
|
|
type=semver,pattern={{major}}.{{minor}}
|
|
type=semver,pattern={{major}}
|
|
-
|
|
name: Build Docker image
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
file: warp.Dockerfile
|
|
context: ./
|
|
push: true
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
labels: ${{ steps.meta.outputs.labels }}
|
|
|
|
build-warp-release:
|
|
if: ${{ github.event_name == 'release' }}
|
|
defaults:
|
|
run:
|
|
working-directory: moq-server
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
settings:
|
|
- host: ubuntu-20.04
|
|
target: x86_64-unknown-linux-gnu
|
|
bundles: appimage
|
|
asset_name: warp-ubuntu-amd64
|
|
- host: windows-latest
|
|
target: x86_64-pc-windows-msvc
|
|
bundles: msi
|
|
asset_name: warp-windows-amd64
|
|
- host: macos-latest
|
|
target: x86_64-apple-darwin
|
|
bundles: dmg
|
|
asset_name: warp-macos-amd64
|
|
- host: macos-latest
|
|
target: aarch64-apple-darwin
|
|
bundles: dmg
|
|
asset_name: warp-macos-apple-silicon
|
|
# - host: ubuntu-20.04
|
|
# target: x86_64-unknown-linux-musl
|
|
# - host: ubuntu-20.04
|
|
# target: aarch64-unknown-linux-gnu
|
|
# - host: ubuntu-20.04
|
|
# target: aarch64-unknown-linux-musl
|
|
# - host: ubuntu-20.04
|
|
# target: armv7-unknown-linux-gnueabihf
|
|
name: Build warp on release
|
|
runs-on: ${{ matrix.settings.host }}
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Install Rust
|
|
id: toolchain
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
targets: ${{ matrix.settings.target }}
|
|
toolchain: stable
|
|
components: clippy, rustfmt
|
|
|
|
- name: Cache Rust Dependencies
|
|
uses: Swatinem/rust-cache@v2
|
|
with:
|
|
save-if: false
|
|
prefix-key: 'v0-rust-deps'
|
|
shared-key: ${{ matrix.settings.target }}
|
|
|
|
- name: Cargo build
|
|
run: cargo build --target ${{ matrix.settings.target }} --manifest-path ./moq-pub/Cargo.toml --release
|
|
|
|
- name: Copy and rename artifacts (Linux)
|
|
if: ${{ matrix.settings.host == 'ubuntu-20.04' }}
|
|
run: |
|
|
cp target/${{ matrix.settings.target }}/release/moq-pub ./warp
|
|
|
|
- name: Copy and rename artifacts (Windows)
|
|
if: ${{ matrix.settings.host == 'windows-latest' }}
|
|
run: |
|
|
cp "target/${{ matrix.settings.target }}/release/moq-pub.exe" ./warp.exe
|
|
|
|
- name: Copy and rename artifacts (macOS)
|
|
if: ${{ matrix.settings.host == 'macos-latest' }}
|
|
run: |
|
|
cp target/${{ matrix.settings.target }}/release/moq-pub ./warp
|
|
|
|
- name: Publish release for (${{ matrix.settings.host }})
|
|
if: ${{ matrix.settings.host == 'windows-latest' }}
|
|
uses: svenstaro/upload-release-action@2.9.0
|
|
with:
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
file: ./moq-server/warp.exe
|
|
asset_name: ${{ matrix.settings.asset_name }}
|
|
tag: ${{ github.ref }}
|
|
|
|
- name: Publish release for (${{ matrix.settings.host }})
|
|
if: ${{ matrix.settings.host != 'windows-latest' }}
|
|
uses: svenstaro/upload-release-action@2.9.0
|
|
with:
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
file: ./moq-server/warp
|
|
asset_name: ${{ matrix.settings.asset_name }}
|
|
tag: ${{ github.ref }} |