-
Notifications
You must be signed in to change notification settings - Fork 13
40 lines (36 loc) · 1.01 KB
/
bundle.yaml
File metadata and controls
40 lines (36 loc) · 1.01 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
name: bundle
on:
workflow_dispatch:
push:
tags:
- 'v*'
jobs:
bundle:
name: release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Docker Login
uses: docker/login-action@v1
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Set the release related variables
run: |
if [[ $GITHUB_REF == refs/tags/* ]]; then
# Release tags.
echo BUNDLE_TAG="${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
else
echo BUNDLE_TAG="$(git describe --tags --always)" >> $GITHUB_ENV
fi
echo BUNDLE_REPO="quay.io/operator-framework/combo-bundle" >> $GITHUB_ENV
- name: Build and push bundle
uses: docker/build-push-action@v2
with:
push: true
context: ./
file: ./Dockerfile.plainbundle
tags: ${{ env.BUNDLE_REPO }}:${{ env.BUNDLE_TAG }}
github-token: ${{ github.token }}