Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit

Permalink
Build images for every PR
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmxs committed Sep 3, 2021
1 parent 2c09440 commit 0cd8e3a
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/feature-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Publish feature image

on:
workflow_dispatch:
# Enable manual trigger of this action.
inputs:
tagPostfix:
description: Image tag postfix.
default: ""
required: false

env:
IMG: storageos/operator:feature-${{ github.head_ref }}${{ github.event.inputs.tagPostfix }}
MANIFESTS_IMG: storageos/operator-manifests:feature-${{ github.head_ref }}${{ github.event.inputs.tagPostfix }}

jobs:
publish-feature-image:
runs-on: ubuntu-latest
name: Publish container image
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
- name: Login to container registry
uses: docker/login-action@v1
with:
registry: docker.io
username: ${{ secrets.DH_USERNAME }}
password: ${{ secrets.DH_PASSWORD }}
- name: Build container image
run: make docker-build
- name: Push container image
run: make docker-push
publish-feature-manifests-image:
runs-on: ubuntu-latest
name: Publish manifests container image
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
- name: Login to container registry
uses: docker/login-action@v1
with:
registry: docker.io
username: ${{ secrets.DH_USERNAME }}
password: ${{ secrets.DH_PASSWORD }}
- name: Run manifests image build
run: make docker-build-manifests
- name: Push manifests container image
run: docker push ${{ env.MANIFESTS_IMG }}

0 comments on commit 0cd8e3a

Please sign in to comment.