Skip to content

Commit

Permalink
fix(ci): latest versions not pushed to dockerhub
Browse files Browse the repository at this point in the history
- fixes pushing to dockerhub for latest version
- fixes goreleaser
  • Loading branch information
fallion authored and kodiakhq[bot] committed Mar 17, 2020
1 parent 51b2952 commit 3193fb3
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 20 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build

on:
push:
branches:
- master
tags:
- "v*"

jobs:
docker-build:
name: Docker Build
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v1

- name: Kaniko build
uses: outillage/kaniko-action@master
with:
image: outillage/release-notary
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
cache: true
cache_registry: outillage/cache
strip_tag_prefix: v
35 changes: 15 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,25 @@ jobs:
uses: actions/setup-go@v1
with:
go-version: 1.13
- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: Release Notary
run: go run main.go publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

# Temp blocker until issue in GH Action fixed
# - name: goreleaser
# uses: docker://goreleaser/goreleaser
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# args: release
# if: success()

- name: Kaniko build
uses: outillage/kaniko-action@master
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.14.x
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
image: outillage/release-notary
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
cache: true
cache_registry: outillage/cache
strip_tag_prefix: v
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3193fb3

Please sign in to comment.