Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6d863aedec | ||
|
|
bd12547855 | ||
|
|
43b3f63082 | ||
|
|
e53e7fa149 | ||
|
|
47b714c8dd |
11
.github/workflows/pr.yml
vendored
Normal file
11
.github/workflows/pr.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
name: Pull request
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
commitsar:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Verify commit messages
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Run commitsar
|
||||||
|
uses: docker://commitsar/commitsar
|
||||||
27
.github/workflows/push.yml
vendored
Normal file
27
.github/workflows/push.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
name: Commit
|
||||||
|
on: push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Build docker image
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
|
||||||
|
- name: GitHub Package Registry
|
||||||
|
uses: outillage/kaniko-action@master
|
||||||
|
with:
|
||||||
|
registry: docker.pkg.github.com
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
image: kaniko
|
||||||
|
cache: true
|
||||||
|
cache_registry: cache
|
||||||
|
|
||||||
|
- name: Dockerhub
|
||||||
|
uses: outillage/kaniko-action@master
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||||
|
image: outillage/kaniko
|
||||||
|
cache: true
|
||||||
|
cache_registry: outillage/cache
|
||||||
36
.github/workflows/release.yml
vendored
Normal file
36
.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
name: Release
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "v*"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release-notes:
|
||||||
|
name: Release Notes
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: Release Notary Action
|
||||||
|
uses: docker://commitsar/release-notary
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: GitHub Package Registry
|
||||||
|
uses: outillage/kaniko-action@master
|
||||||
|
with:
|
||||||
|
registry: docker.pkg.github.com
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
image: kaniko
|
||||||
|
cache: true
|
||||||
|
cache_registry: cache
|
||||||
|
|
||||||
|
- name: Dockerhub
|
||||||
|
uses: outillage/kaniko-action@master
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||||
|
image: outillage/kaniko
|
||||||
|
cache: true
|
||||||
|
cache_registry: outillage/cache
|
||||||
@@ -26,8 +26,8 @@ sanitize "${TAG}" "tag"
|
|||||||
if [ "$REGISTRY" == "docker.pkg.github.com" ]; then
|
if [ "$REGISTRY" == "docker.pkg.github.com" ]; then
|
||||||
export IMAGE="$GITHUB_REPOSITORY/$IMAGE"
|
export IMAGE="$GITHUB_REPOSITORY/$IMAGE"
|
||||||
|
|
||||||
if [ -z $INPUT_CACHE_REGISTRY ]; then
|
if [ ! -z $INPUT_CACHE_REGISTRY ]; then
|
||||||
export INPUT_CACHE_REGISTRY="$GITHUB_REPOSITORY/$INPUT_CACHE_REGISTRY"
|
export INPUT_CACHE_REGISTRY="$REGISTRY/$GITHUB_REPOSITORY/$INPUT_CACHE_REGISTRY"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user