This repository is currently being migrated. It's locked while the migration is in progress.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |