Merge pull request #31 from shipwright-io/qu1queee/owners_updates #24
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
--- | |
name: main | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
image: | |
name: image | |
runs-on: ubuntu-latest | |
steps: | |
- name: check out code | |
uses: actions/checkout@v2 | |
- name: registry login | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: shipwright-io | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: build image and push | |
uses: docker/build-push-action@v2 | |
with: | |
push: true | |
context: ./ | |
file: ./Containerfile | |
tags: ghcr.io/shipwright-io/imgctrl:latest | |
release: | |
name: release | |
needs: | |
- image | |
runs-on: ubuntu-latest | |
container: | |
image: quay.io/tagger/actions-image:latest | |
steps: | |
- name: checkout source code | |
uses: actions/checkout@v2 | |
- name: build linux plugin | |
run: make kubectl-image | |
- name: compress linux plugin | |
run: tar -C output/bin -czvf kubectl-image-linux-amd64.tgz kubectl-image | |
- name: build darwin plugin | |
run: make kubectl-image-darwin | |
- name: compress darwin plugin | |
run: tar -C output/bin -czvf kubectl-image-darwin-amd64.tgz kubectl-image | |
- name: build helm chart release | |
run: helm package chart/ | |
- name: build readme pdf | |
run: make pdf | |
- name: publish release | |
uses: marvinpinto/action-automatic-releases@latest | |
with: | |
automatic_release_tag: latest | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
prerelease: true | |
title: development release build | |
files: | | |
*.tgz | |
output/doc/README.pdf |