Skip to content
This repository has been archived by the owner on Oct 19, 2020. It is now read-only.

Commit

Permalink
MGMT-1161 Added release workflow for new git tags
Browse files Browse the repository at this point in the history
  • Loading branch information
eranco74 committed Jun 16, 2020
1 parent 989bf40 commit 49d83d1
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: build

on:
push:
tags:
- "*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v1
- name: Get release version
id: get_version
run: echo ::set-env name=GIT_REVISION::$(echo ${GITHUB_SHA})
- name: Get the tag
id: get_tag
run: echo ::set-env name=GIT_TAG::${GITHUB_REF/refs\/tags\//}
- name: Publish image to Registry
uses: elgohr/[email protected]
with:
name: ignition-manifests-and-kubeconfig-generate
username: ${{ secrets.OCPMETAL_USERNAME }}
password: ${{ secrets.OCPMETAL_PASSWORD }}
REGISTRY: 'quay.io/ocpmetal'
dockerfile: Dockerfile.baremetal
buildargs: GIT_REVISION
tags: "${{ env.GIT_TAG }},${{ env.GIT_REVISION }}"

0 comments on commit 49d83d1

Please sign in to comment.