Skip to content

Commit

Permalink
Update and rename publish.yaml to release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
hazcod authored Oct 15, 2020
1 parent a741b59 commit 1586014
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 30 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/publish.yaml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
on:
push:
branches:
- master

name: Publish Image
jobs:
dockerpush:
name: docker build
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v2.0.0
-
uses: go-semantic-release/action@v1
id: version
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
-
run: echo "Pushing version ${{ steps.version.outputs.version }}"
-
name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@2.22
with:
registry: ghcr.io
name: "ghcr.io/ironpeakservices/iron-redis:${{ steps.version.outputs.version }}"
username: hazcod
password: ${{ secrets.PACKAGE_TOKEN }}
-
name: Create GitHub release
uses: actions/create-release@v1.1.4
with:
tag_name: ${{ steps.version.outputs.version }}
release_name: iron-scratch
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1586014

Please # to comment.