Skip to content

Merge pull request #20 from replicatedhq/divolgin/sc-88850/make-a-dec… #34

Merge pull request #20 from replicatedhq/divolgin/sc-88850/make-a-dec…

Merge pull request #20 from replicatedhq/divolgin/sc-88850/make-a-dec… #34

Workflow file for this run

on:
push:
tags:
- "v*.*.*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- run: echo ::set-output name=RELEASE_VERSION::${GITHUB_REF#refs/*/}
id: release_version
- run: make release
env:
RELEASE_VERSION: ${{ steps.release_version.outputs.RELEASE_VERSION }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- uses: docker/login-action@v1
with:
registry: registry.replicated.com
username: ${{ secrets.REPLICATED_REGISTRY_SECRET }}
password: ${{ secrets.REPLICATED_REGISTRY_SECRET }}
- name: Push to Replicated
id: release_replicated
run: make release-replicated
env:
RELEASE_VERSION: ${{ steps.release_version.outputs.RELEASE_VERSION }}