Merge pull request #112 from ironpeakservices/dependabot/github_actio… #50
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
on: | |
push: | |
branches: | |
- master | |
name: Publish Image | |
jobs: | |
dockerpush: | |
name: docker build | |
runs-on: ubuntu-latest | |
steps: | |
- | |
uses: actions/[email protected] | |
- | |
uses: go-semantic-release/[email protected] | |
id: version | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- | |
run: echo "Pushing version ${{ steps.version.outputs.version }}" | |
- | |
name: Publish to Registry | |
uses: elgohr/[email protected] | |
with: | |
registry: ghcr.io | |
name: "ghcr.io/ironpeakservices/iron-scratch:${{ steps.version.outputs.version }}" | |
username: hazcod | |
password: ${{ secrets.PACKAGE_TOKEN }} | |
- | |
name: Create GitHub release | |
uses: actions/[email protected] | |
with: | |
tag_name: ${{ steps.version.outputs.version }} | |
release_name: iron-scratch | |
draft: false | |
prerelease: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |