Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim committed Aug 31, 2023
1 parent 10bd98e commit c9f8e78
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Docker Image
name: Latest Build

on:
push:
branches: [ "main" ]
tags:
- v*
pull_request:
branches: [ "main" ]

Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will release
name: Release

on:
workflow_run:
workflows: [ "Latest Build" ]
branches: [ main ]
types:
- completed

jobs:

release:
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v3

- name: Release
uses: brpaz/action-semantic-release@v1
with:
dry_run: "false"
install_plugins: "semantic-release-docker semantic-release-gcr"
branch: main








2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ build_image_tag: .create_git_tag
release_ghcr:
export NEXT_VERSION=$(GHCR_NEXT_VERSION) && \
$(MAKE) .create_git_tag && \
git push
git push origin $(GHCR_NEXT_VERSION)


# LIB TARGETS ##############
Expand Down

0 comments on commit c9f8e78

Please sign in to comment.