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:
parent
e43acd5b65
commit
2ee2fca8ae
2 changed files with 1 additions and 2 deletions
1
.github/workflows/build-and-push.yml
vendored
1
.github/workflows/build-and-push.yml
vendored
|
|
@ -26,7 +26,6 @@ jobs:
|
|||
- name: "Checkout"
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ inputs.ref }}
|
||||
path: src/github.com/cloudbase/garm
|
||||
fetch-depth: 0
|
||||
|
||||
|
|
|
|||
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue