Skip to content

Commit

Permalink
Update build.yml (#35)
Browse files Browse the repository at this point in the history
* fix: avoid cache
* fix: use the 2.2.31-r2 for gnupg
* fix: enable gcloud
  • Loading branch information
maxisam authored Nov 9, 2022
1 parent 4da9a42 commit ea5bd5a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
VERSION=${{ env.APP_VERSION }}.${{ github.run_number }}
EN_AWS_CLI=true
EN_AZURE=true
EN_GCLOUD=false
EN_GCLOUD=true
EN_MINIO=true
EN_RCLONE=true
EN_GPG=true
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
VERSION=${{ env.APP_VERSION }}.${{ github.run_number }}
EN_AWS_CLI=true
EN_AZURE=true
EN_GCLOUD=false
EN_GCLOUD=true
EN_MINIO=true
EN_RCLONE=true
EN_GPG=true
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ jobs:
needs: set-build-env
strategy:
matrix:
feature: [aws, azure, minio, rclone]
feature: [aws, azure, gcloud, minio, rclone]
include:
- feature: aws
arg: EN_AWS_CLI=true
- feature: azure
arg: EN_AZURE=true
# - feature: gcloud
# arg: EN_GCLOUD=true
- feature: gcloud
arg: EN_GCLOUD=true
- feature: minio
arg: EN_MINIO=true
- feature: rclone
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
VERSION=${{ needs.set-build-env.outputs.buildId }}
EN_AWS_CLI=true
EN_AZURE=true
EN_GCLOUD=false
EN_GCLOUD=true
EN_MINIO=true
EN_RCLONE=true
EN_GPG=true
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG AZURE_CLI_VERSION=2.32.0
ARG EN_GCLOUD=false
ARG GOOGLE_CLOUD_SDK_VERSION=370.0.0
ARG EN_GPG=true
ARG GNUPG_VERSION="2.2.40-r0"
ARG GNUPG_VERSION="2.2.31-r2"
ARG EN_MINIO=false
ARG EN_RCLONE=false

Expand Down Expand Up @@ -70,7 +70,7 @@ WORKDIR /

COPY build.sh /tmp
RUN /tmp/build.sh

ENV PATH="/google-cloud-sdk/bin:${PATH}"
COPY --from=mgob-builder /go/src/github.com/stefanprodan/mgob/mgob .
COPY --from=tools-builder /go/mongo-tools/bin/* /usr/bin/

Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apk add --no-cache ca-certificates tzdata bash curl krb5-dev
# Install GnuPG
if [ "_${MGOB_EN_GPG}" = "_true" ]
then
apk add gnupg=${GNUPG_VERSION}
apk add --no-cache gnupg=${GNUPG_VERSION}
fi

cd /tmp
Expand Down

0 comments on commit ea5bd5a

Please sign in to comment.