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 5
52 lines (49 loc) · 1.51 KB
/
develop-image.yml
File metadata and controls
52 lines (49 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Publish develop image
on:
push:
branches:
- master
env:
OPERATOR_IMAGE: storageos/api-manager:develop
MANIFESTS_IMAGE: storageos/api-manager-manifests:develop
jobs:
publish-image:
runs-on: ubuntu-latest
name: Publish container image
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@v2
- name: Login to container registry
uses: docker/login-action@v1
with:
registry: docker.io
username: ${{ secrets.CR_USER }}
password: ${{ secrets.CR_PAT }}
- name: Build container image
run: make operator-image
- name: Push container image
run: make operator-image-push
publish-manifests-image:
runs-on: ubuntu-latest
name: Publish manifests container image
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@v2
- name: Login to container registry
uses: docker/login-action@v1
with:
registry: docker.io
username: ${{ secrets.DOCKERHUB_CLI_USERNAME }}
password: ${{ secrets.DOCKERHUB_CLI_PASSWORD }}
- name: Run manifests image build
run: make manifests-image
- name: Push manifests container image
run: docker push ${{ env.MANIFESTS_IMAGE }}