Skip to content

Commit

Permalink
rework workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Hermsi1337 committed Jun 30, 2020
1 parent 84c8922 commit b27670a
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 40 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/prepare_default.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/prepare_release.yml

This file was deleted.

15 changes: 14 additions & 1 deletion .github/workflows/release_master.yml
@@ -1,4 +1,4 @@
name: Release
name: Release Master

on:
push:
Expand All @@ -10,6 +10,19 @@ jobs:
name: Build and release latest image
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
-
name: Docker login
run: docker login -u "${{ secrets.QUAY_IO_USER }}" -p "${{ secrets.QUAY_IO_PASSWORD }}" quay.io
-
name: Run GoReleaser
run: curl -sL https://git.io/goreleaser | bash -s -- -f build/ci/.goreleaser.yml --snapshot --skip-publish --rm-dist && docker push "quay.io/mittwald/kube-httpcache:latest"
Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/release_tags.yml
@@ -1,4 +1,4 @@
name: Release
name: Release Tags

on:
push:
Expand All @@ -7,9 +7,22 @@ on:

jobs:
build:
name: Build and release tagged image
name: Build and release stable image
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
-
name: Docker login
run: docker login -u "${{ secrets.QUAY_IO_USER }}" -p "${{ secrets.QUAY_IO_PASSWORD }}" quay.io
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/test_build.yml
@@ -1,12 +1,26 @@
name: Test

on: [pull_request]
on:
push:
branches:
- '*'
- '!master'

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down

0 comments on commit b27670a

Please sign in to comment.