Skip to content

Commit

Permalink
ci: Add a reusable workflow to release with Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
geokrety-bot committed Aug 8, 2023
1 parent 0b8dda5 commit 25e9821
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/release-with-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Automatic release with Dockerfile
# Use this one for default pre-commit pre-installed tools and a standard dockerfile

on:
push:
branches:
- main
workflow_call:
inputs:
image_name:
type: string
secrets:
GH_TOKEN:
required: true

jobs:
pre-commit:
uses: geokrety/geokrety-gha-workflows/.github/workflows/pre-commit.yml@main

docker:
needs: pre-commit
uses: geokrety/geokrety-gha-workflows/.github/workflows/docker-build.yml@main
with:
image_name: ${{ inputs.image_name }}
dockerhub_username: ${{ vars.DOCKERHUB_USERNAME }}
dockerfile: Dockerfile
secrets:
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}

build-release:
uses: geokrety/geokrety-gha-workflows/.github/workflows/semantic-release.yml@main
needs: docker
secrets:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Automatic release
name: Automatic release with pre-commit
# Use this one for default pre-commit pre-installed tools

on:
Expand Down

0 comments on commit 25e9821

Please sign in to comment.