mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-10 12:40:19 +01:00
Bump up the go-migrate (#13914)
Bump it up to v4.11.0 to be consistent with harbor-core Signed-off-by: Daniel Jiang <jiangd@vmware.com>
This commit is contained in:
parent
2d4456c630
commit
1b64b9fdc2
2
Makefile
2
Makefile
@ -102,7 +102,7 @@ PREPARE_VERSION_NAME=versions
|
|||||||
#versions
|
#versions
|
||||||
REGISTRYVERSION=v2.7.1-patch-2819-2553-redis
|
REGISTRYVERSION=v2.7.1-patch-2819-2553-redis
|
||||||
NOTARYVERSION=v0.6.1
|
NOTARYVERSION=v0.6.1
|
||||||
NOTARYMIGRATEVERSION=v3.5.4
|
NOTARYMIGRATEVERSION=v4.11.0
|
||||||
TRIVYVERSION=v0.14.0
|
TRIVYVERSION=v0.14.0
|
||||||
TRIVYADAPTERVERSION=v0.17.0
|
TRIVYADAPTERVERSION=v0.17.0
|
||||||
|
|
||||||
|
@ -20,10 +20,7 @@ RUN cp -r /go/src/${NOTARYPKG}/migrations/ /
|
|||||||
RUN git clone -b $MIGRATE_VERSION https://github.com/golang-migrate/migrate /go/src/${MIGRATEPKG}
|
RUN git clone -b $MIGRATE_VERSION https://github.com/golang-migrate/migrate /go/src/${MIGRATEPKG}
|
||||||
WORKDIR /go/src/${MIGRATEPKG}
|
WORKDIR /go/src/${MIGRATEPKG}
|
||||||
|
|
||||||
RUN curl -fsSL -o /usr/local/bin/dep https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 && chmod +x /usr/local/bin/dep
|
ENV DATABASES="postgres mysql redshift cassandra spanner cockroachdb"
|
||||||
RUN dep ensure -vendor-only
|
|
||||||
|
|
||||||
ENV DATABASES="postgres mysql redshift cassandra spanner cockroachdb clickhouse"
|
|
||||||
ENV SOURCES="file go_bindata github aws_s3 google_cloud_storage"
|
ENV SOURCES="file go_bindata github aws_s3 google_cloud_storage"
|
||||||
|
|
||||||
RUN go install -tags "$DATABASES $SOURCES" -ldflags="-X main.Version=${MIGRATE_VERSION}" ${MIGRATEPKG}/cli && mv /go/bin/cli /go/bin/migrate
|
RUN go install -tags "$DATABASES $SOURCES" -ldflags="-X main.Version=${MIGRATE_VERSION}" ${MIGRATEPKG}/cli && mv /go/bin/cli /go/bin/migrate
|
||||||
|
Loading…
Reference in New Issue
Block a user