Skip to content

Commit

Permalink
Update publish.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
hazcod authored Oct 15, 2020
1 parent 9f804b2 commit af6fa03
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,25 @@ jobs:
-
uses: actions/[email protected]
-
name: extract tag
id: vars
run: echo ::set-output name=nginx_version::$(grep '^FROM nginx' Dockerfile | cut -d ' ' -f 2 | cut -d ':' -f 2)
uses: go-semantic-release/action@v1
id: version
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
-
run: echo "Pushing version ${{ steps.vars.outputs.nginx_version }}"
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-nginx:${{ steps.vars.outputs.nginx_version }}"
name: "ghcr.io/ironpeakservices/iron-nginx:${{ steps.version.outputs.version }}"
username: hazcod
password: ${{ secrets.PACKAGE_TOKEN }}
-
name: Create GitHub release
uses: actions/[email protected]
with:
tag_name: ${{ steps.vars.outputs.nginx_version }}
tag_name: ${{ steps.version.outputs.version }}
release_name: iron-nginx
draft: false
prerelease: false
Expand Down

0 comments on commit af6fa03

Please sign in to comment.