Use the Dockerfile from the main branch

There is no way to change the Dockerfile in a tag. We need to
use the Dockerfile in the main branch. So even if we're buildin
the image for a stable version, we need to check out the main branch.

The Dockerfile will take care of checking out the proper tags.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
Gabriel Adrian Samfira 2025-08-06 23:00:04 +03:00
parent e43acd5b65
commit 2ee2fca8ae
No known key found for this signature in database
GPG key ID: 7D073DCC2C074CB5
2 changed files with 1 additions and 2 deletions

View file

@ -26,7 +26,6 @@ jobs:
- name: "Checkout"
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
path: src/github.com/cloudbase/garm
fetch-depth: 0

View file

@ -19,7 +19,7 @@ RUN cd /build/garm/cmd/garm-cli \
-tags osusergo,netgo,sqlite_omit_load_extension \
-ldflags "-linkmode external -extldflags '-static' -s -w -X github.com/cloudbase/garm/util/appdefaults.Version=$(git describe --tags --match='v[0-9]*' --dirty --always)" \
. && upx /bin/garm-cli
RUN set -e; \
RUN set -ex; \
mkdir -p /opt/garm/providers.d; \
for repo in \
cloudbase/garm-provider-azure \