Skip to content

Commit

Permalink
Ci/add docker build and push to release please (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaLanziani authored Nov 30, 2023
1 parent b08bdd7 commit 31f46df
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
with:
command: manifest

## Build go binary and add it to the release
- uses: actions/checkout@v4
with:
fetch-depth: 0
Expand All @@ -30,6 +29,26 @@ jobs:
go-version: stable
if: ${{ steps.release.outputs.release_created }}

## Use initium to build and push initium container
- name: build docker container using initium
run: go run main.go build
env:
INITIUM_APP_NAME: initium-cli
INITIUM_VERSION: ${{ steps.release.outputs.release_tag_name }}
INITIUM_REGISTRY_USER: ${{ github.actor }}
INITIUM_REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
if: ${{ steps.release.outputs.release_created }}

- name: build docker container using initium
run: go run main.go push
env:
INITIUM_APP_NAME: initium-cli
INITIUM_VERSION: ${{ steps.release.outputs.release_tag_name }}
INITIUM_REGISTRY_USER: ${{ github.actor }}
INITIUM_REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
if: ${{ steps.release.outputs.release_created }}

## Build go binary and add it to the release
- name: Build go binaries
uses: goreleaser/goreleaser-action@v5
with:
Expand Down

0 comments on commit 31f46df

Please sign in to comment.