Skip to content

Fetch tags in build-and-push-images #12

@mawbid

Description

@mawbid

Make git tags available while building images, allowing build scripts that tag image with the output of git describe to produce tags containing version numbers, and not just hashes.

Maybe like this, or maybe make it configurable:

+++ b/.github/workflows/main-deploy.yml
@@ -132,6 +132,7 @@ jobs:
       uses: actions/checkout@v4
       with:
         lfs: ${{ inputs.build_checkout_with_lfs }}
+        fetch-tags: true

     - name: '🏗️ Build and push image all images'
       uses: aproorg/github-workflows/.github/actions/build-and-push-image@main

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions