Skip to content

Commit

Permalink
Improved build pipelines by using cached tool installers
Browse files Browse the repository at this point in the history
  • Loading branch information
winromulus committed Jun 29, 2020
1 parent e865553 commit f96b679
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 35 deletions.
32 changes: 4 additions & 28 deletions .devops/pipelines/jobs.ci.build.docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,38 +22,14 @@ jobs:
- ${{ if eq(parameters.arch, 'arm64') }}:
- Agent.OSArchitecture -equals ARM64
variables:
- ${{ if eq(parameters.arch, 'amd64') }}:
- name: Docker.CLI.Architecture
value: amd64
- ${{ if eq(parameters.arch, 'arm64') }}:
- name: Docker.CLI.Architecture
value: arm64
- ${{ if eq(parameters.arch, 'arm') }}:
- name: Docker.CLI.Architecture
value: armhf
- name: Docker.Image.Architecture
value: ${{ parameters.arch }}

steps:
- script: |
docker version
if [ "$?" -ne "0" ]; then
apt-get update
apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository \
"deb [arch=$(Docker.CLI.Architecture)] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io
fi
displayName: "Docker install"
- task: DockerInstaller@0
displayName: 'Docker install'
inputs:
dockerVersion: '19.03.5'

- task: Docker@2
displayName: 'Build image'
Expand Down
2 changes: 1 addition & 1 deletion .devops/pipelines/stage.ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ stages:
displayName: 'Create Artifacts directories'
- task: HelmInstaller@1
inputs:
helmVersionToInstall: '3.1.1'
helmVersionToInstall: '3.2.4'
displayName: "Helm install"
- script: |
cp README.md src/helm/reflector/README.md
Expand Down
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ updates:
schedule:
interval: daily
open-pull-requests-limit: 10
- package-ecosystem: docker
directory: "/src/ES.Kubernetes.Reflector.Host"
schedule:
interval: daily
open-pull-requests-limit: 10
12 changes: 6 additions & 6 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Configuration for probot-stale - https://github.com/probot/stale

# Number of days of inactivity before an Issue or Pull Request becomes stale
daysUntilStale: 60
daysUntilStale: 14

# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
Expand Down Expand Up @@ -30,17 +30,17 @@ staleLabel: wontfix

# Comment to post when marking as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
Automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when removing the stale label.
# unmarkComment: >
# Your comment here.
unmarkComment: >
Stale status removed.
# Comment to post when closing a stale Issue or Pull Request.
# closeComment: >
# Your comment here.
closeComment: >
Closed due to lack of activity.
# Limit the number of actions per hour, from 1-30. Default is 30
limitPerRun: 30
Expand Down

0 comments on commit f96b679

Please sign in to comment.