mirror of
https://github.com/kubereboot/kured.git
synced 2026-08-23 21:36:33 +00:00
- Make markdownlint happier in a couple of places. - Rename '*-master-*' files - Change default branches of some other projects we rely on. They moved to 'main' as well. - Standardise version of actions/checkout. - Update last release in README to 1.6.1. - Bbump chart version. Eventually closes: #252 Signed-off-by: Daniel Holbach <daniel@weave.works>
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
# We publish every merged commit in the form of an image
|
|
# named kured:<branch>-<short tag>
|
|
name: Push image of latest main
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
tag-scan-and-push-final-image:
|
|
name: "Build, scan, and publish tagged image"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Find go version
|
|
run: |
|
|
GO_VERSION=$(awk '/^go/ {print $2};' go.mod)
|
|
echo "::set-output name=version::${GO_VERSION}"
|
|
id: awk_gomod
|
|
|
|
- name: Ensure go version
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: "${{ steps.awk_gomod.outputs.version }}"
|
|
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v1
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME_WEAVEWORKSKUREDCI }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN_WEAVEWORKSKUREDCI }}
|
|
|
|
- name: Build image
|
|
run: |
|
|
make DH_ORG="${{ github.repository_owner }}" image
|
|
|
|
- name: Publish image
|
|
run: |
|
|
make DH_ORG="${{ github.repository_owner }}" publish-image
|