-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow specifying a dockerfile to use for a target
- Loading branch information
1 parent
39c4d5b
commit be84a9d
Showing
8 changed files
with
201 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Publish Image | ||
description: Publishes images from artifact | ||
inputs: | ||
targets: | ||
description: 'Target' | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Read changelog | ||
id: changelog-reader | ||
uses: mindsers/changelog-reader-action@v2.0.0 | ||
with: | ||
validation_depth: 10 | ||
version: ${{ (github.ref_type == 'tag' && github.ref_name) || 'Unreleased' }} | ||
path: ./CHANGELOG.md | ||
|
||
- name: Download artifacts | ||
id: download-artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
path: | ||
${{ runner.temp }}/artifacts | ||
|
||
- name: Log into crates.io | ||
if: steps.cargo-toml-publish.outputs.value != 'false' && github.event_name != 'pull_request' | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: login | ||
args: -- ${{ inputs.cargo-registry-token }} | ||
|
||
- name: Create GitHub release | ||
if: > | ||
github.event_name == 'push' && ( | ||
github.ref == format('refs/heads/{0}', github.event.repository.default_branch) || | ||
startsWith(github.ref, 'refs/tags/v') | ||
) | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag: ${{ steps.changelog-reader.outputs.version }} | ||
name: ${{ steps.changelog-reader.outputs.version }} | ||
body: ${{ steps.changelog-reader.outputs.changes }} | ||
prerelease: ${{ steps.changelog-reader.outputs.status == 'prereleased' }} | ||
draft: ${{ steps.changelog-reader.outputs.status == 'unreleased' }} | ||
files: | | ||
${{ steps.download-artifacts.outputs.download-path }}/*/* | ||
- name: Publish crate | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: publish | ||
args: ${{ !startsWith(github.ref, 'refs/tags/v') && '--dry-run' || '' }} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters