Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] switch to acr for alpine #515

Merged
merged 4 commits into from
Apr 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions azure-pipelines/signing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ variables:
- group: vcpkg-dependency-source-blobs
- name: FMT_TARBALL_URL
value: "$(fmt-tarball-url)"
- group: vcpkgdockercontainers-secrets
- name: AZURE_CONTAINER_REGISTRY_USERNAME
value: "$(vcpkgdockercontainers-pull-username)"
- name: AZURE_CONTAINER_REGISTRY_PASSWORD
value: "$(vcpkgdockercontainers-pull-password)"
# If the user didn't override the signing type, then only real-sign on main.
- ${{ if ne(parameters.SignTypeOverride, 'default') }}:
- name: SignType
Expand Down Expand Up @@ -241,13 +246,14 @@ jobs:
- task: CmdLine@2
displayName: "Build vcpkg in Alpine"
inputs:
failOnStderr: true
failOnStderr: false
script: |
docker build --build-arg "VCPKG_FMT_URL=$FMT_TARBALL_URL" -t vcpkg-muslc-image -f azure-pipelines/vcpkg-alpine/Dockerfile .
docker create -ti --name vcpkg-muslc-container vcpkg-muslc-image sh
docker cp vcpkg-muslc-container:/build/vcpkg "$(Build.ArtifactStagingDirectory)/vcpkg-muslc"
docker container rm vcpkg-muslc-container
docker image rm vcpkg-muslc-image
docker login vcpkgdockercontainers.azurecr.io -u $(AZURE_CONTAINER_REGISTRY_USERNAME) -p $(AZURE_CONTAINER_REGISTRY_PASSWORD) || exit 1
docker build --build-arg "VCPKG_FMT_URL=$FMT_TARBALL_URL" -t vcpkg-muslc-image -f azure-pipelines/vcpkg-alpine/Dockerfile . || exit 1
docker create -ti --name vcpkg-muslc-container vcpkg-muslc-image sh || exit 1
docker cp vcpkg-muslc-container:/build/vcpkg "$(Build.ArtifactStagingDirectory)/vcpkg-muslc" || exit 1
docker container rm vcpkg-muslc-container || exit 1
docker image rm vcpkg-muslc-image || exit 1
- task: PublishBuildArtifacts@1
displayName: "Publish Unsigned muslc Binary"
inputs:
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines/vcpkg-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.11
FROM vcpkgdockercontainers.azurecr.io/vcpkg/alpine:3.11

RUN apk add alpine-sdk cmake ninja git curl tar gzip zip

Expand Down