mirror of
https://github.com/yanhao98/composite-actions.git
synced 2025-07-13 23:00:48 +08:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
2dda4ee55a | |||
e01a0b34d8 | |||
5195d74ff1 | |||
6e58674f53 | |||
ced3572c0a |
10
.github/workflows/docker-build-push.yml
vendored
10
.github/workflows/docker-build-push.yml
vendored
@ -12,7 +12,11 @@ env:
|
||||
|
||||
jobs:
|
||||
job:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-15] # https://docs.github.com/zh/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#用于公共存储库的-github-托管的标准运行器
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@main
|
||||
- uses: yanhao98/semantic-release-action@main
|
||||
@ -33,12 +37,12 @@ jobs:
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- uses: yanhao98/composite-actions/docker-build-push@main
|
||||
if: steps.semantic.outputs.next_release_published == 'true'
|
||||
# if: steps.semantic.outputs.next_release_published == 'true'
|
||||
id: docker-build-push
|
||||
with:
|
||||
build_file: ./Dockerfile.test
|
||||
build_platforms: linux/amd64,linux/arm64
|
||||
build_push: true
|
||||
build_push: ${{ matrix.os == 'ubuntu-latest' && steps.semantic.outputs.next_release_published == 'true' }}
|
||||
build_load: false
|
||||
metadata_images: |
|
||||
docker.io/${{ vars.DOCKERHUB_USERNAME }}/docker-example
|
||||
|
2
.github/workflows/setup-node-environment.yml
vendored
2
.github/workflows/setup-node-environment.yml
vendored
@ -12,11 +12,11 @@ env:
|
||||
|
||||
jobs:
|
||||
job:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
container-image: ["", "yanhao98/runner-images:pnpm"]
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ${{ matrix.container-image }}
|
||||
steps:
|
||||
|
Reference in New Issue
Block a user