File tree Expand file tree Collapse file tree 3 files changed +37
-30
lines changed
Expand file tree Collapse file tree 3 files changed +37
-30
lines changed Original file line number Diff line number Diff line change @@ -8,17 +8,9 @@ name: Docker
88
99on :
1010
11- push :
12- branches :
13- - trunk
14- paths-ignore :
15- - ' docs/**'
16- - ' **.md'
17-
1811 pull_request :
1912 branches :
2013 - trunk
21- - release/*
2214 types :
2315 - opened
2416 - reopened
2921 - ' docs/**'
3022 - ' **.md'
3123
24+ permissions :
25+ contents : read
26+ packages : write
27+
3228env :
3329
3430 REGISTRY : ghcr.io
Original file line number Diff line number Diff line change @@ -7,18 +7,25 @@ name: Release
77
88on :
99
10- push :
10+ # Treating approved PRs into trunk as "pre-releases"
11+ pull_request_review :
1112 branches :
12- - trunk
13+ - " trunk"
14+ types :
15+ - submitted
1316 paths-ignore :
14- - Cargo.toml
17+ - " docs/**"
18+ - " *.md"
1519 - Cargo.lock
20+ - Cargo.toml
1621
17- pull_request :
22+ # Treating merged PRs into trunk as "releases"
23+ push :
1824 branches :
19- - trunk
20- types :
21- - ready_for_review
25+ - " trunk"
26+ paths-ignore :
27+ - " docs/**"
28+ - " *.md"
2229
2330permissions :
2431 packages : write
@@ -80,20 +87,22 @@ jobs:
8087 # ${MAJOR}.${MINOR}.${PATCH}-${PRE-RELEASE}+${BUILD}
8188 - id : prep_release
8289 name : Prepare for Release
83- uses : salt-labs/action-ship-it @trunk
90+ uses : salt-labs/action-its-shipping-time @trunk
8491 with :
8592 loglevel : " INFO"
8693 tag_enable : " TRUE"
8794 tag_force : " FALSE"
95+ changelog_enable : " TRUE"
8896 git_pretty_format : " * %h %G? %aN - %s"
97+ calver_enable : " TRUE"
8998 calver_scheme : " YYYY.MM.GEN"
9099 calver_split : " ."
91100 calver_split_mod : " ."
92101 timezone : " Australia/Sydney"
93102
94103 - id : create_release_prerelease
95104 name : Create Pre-Release
96- if : github.event_name == 'pull_request' && github. event.pull_request.draft == false
105+ if : github.event.review.state == 'approved'
97106 uses : actions/create-release@v1
98107 env :
99108 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -297,9 +306,9 @@ jobs:
297306 # Publish Docker Container
298307 # ########################
299308
300- release_publish_docker :
309+ release_publish_oci :
301310
302- name : Publish Release to Docker
311+ name : Publish Release to registry
303312
304313 needs :
305314 - create_release
Original file line number Diff line number Diff line change @@ -7,17 +7,9 @@ name: Rust
77
88on :
99
10- push :
11- branches :
12- - trunk
13- paths-ignore :
14- - ' docs/**'
15- - ' **.md'
16-
1710 pull_request :
1811 branches :
1912 - trunk
20- - release/*
2113 types :
2214 - opened
2315 - reopened
6860 - target : x86_64-pc-windows-msvc
6961 os : windows-latest
7062 toolchain : stable
71- - target : aarch64-unknown-linux-gnu
72- os : ubuntu-latest
73- toolchain : stable
63+ # - target: aarch64-unknown-linux-gnu
64+ # os: ubuntu-latest
65+ # toolchain: stable
7466 # exclude:
7567
7668 steps :
8375 toolchain : ${{ matrix.toolchain }}
8476 default : true
8577
78+ - id : setup_rust_arm64
79+ name : Setup the Rust environment for ARM64
80+ if : matrix.target == 'aarch64-unknown-linux-gnu' && matrix.os == 'ubuntu-latest'
81+ run : |
82+ sudo apt install gcc-multilib
83+
8684 - id : checkout_repository
8785 name : Checkout repository
8886 uses : actions/checkout@v2
87+ env :
88+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
89+ with :
90+ persist-credentials : true
8991
9092 - id : cache_artifacts_cargo_registry
9193 name : Cache Cargo registry
You can’t perform that action at this time.
0 commit comments