diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e13c415..7eb849c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -13,25 +13,23 @@ jobs: - uses: actions/checkout@v2.3.4 - - uses: go-semantic-release/action@v1 - id: version - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - - - run: echo "Pushing version ${{ steps.version.outputs.version }}" + id: vars + run: | + echo ::set-output name=alpine_version::$(grep '^FROM alpine' Dockerfile | cut -d ' ' -f 2 | cut -d ':' -f 2) + echo "Using alpine version ${{ steps.vars.outputs.alpine_version }}" - name: Publish to Registry uses: elgohr/Publish-Docker-Github-Action@3.01 with: registry: ghcr.io - name: "ghcr.io/ironpeakservices/iron-alpine:${{ steps.version.outputs.version }}" + name: "ghcr.io/ironpeakservices/iron-alpine:${{ steps.vars.outputs.alpine_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 }} + tag_name: ${{ steps.vars.outputs.alpine_version }} release_name: iron-alpine draft: false prerelease: false