fix(ci): remove pr image tasks, add stable and latest manifests

This commit is contained in:
Shadowghost 2020-10-15 06:52:30 +00:00
parent f6057a776f
commit 21484c06b0

View File

@ -58,18 +58,6 @@ jobs:
unstable-$(Build.BuildNumber)-$(BuildConfiguration)
unstable-$(BuildConfiguration)
- task: Docker@2
displayName: 'Build and push PR Docker images'
condition: startsWith(variables['System.PullRequest.TargetBranch'], 'master')
inputs:
repository: 'jellyfin/jellyfin-vue'
command: buildAndPush
buildContext: '.'
Dockerfile: 'Dockerfile'
containerRegistry: Docker Hub
tags: |
pr-$(System.PullRequest.PullRequestId)-$(BuildConfiguration)
- task: Docker@2
displayName: 'Build and push stable Docker images'
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
@ -114,30 +102,27 @@ jobs:
displayName: 'Push unstable manifest'
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/master')
- script: |
docker manifest create \
jellyfin/jellyfin-vue:pr-$(System.PullRequest.PullRequestId) \
--amend jellyfin/jellyfin-vue:pr-$(System.PullRequest.PullRequestId)-armhf \
--amend jellyfin/jellyfin-vue:pr-$(System.PullRequest.PullRequestId)-amd64 \
--amend jellyfin/jellyfin-vue:pr-$(System.PullRequest.PullRequestId)-arm64
displayName: 'Build PR manifest'
condition: startsWith(variables['System.PullRequest.TargetBranch'], 'master')
- script: |
docker manifest push jellyfin/jellyfin-vue:$(Version)
displayName: 'Push PR manifest'
condition: startsWith(variables['System.PullRequest.TargetBranch'], 'master')
- script: |
docker manifest create \
jellyfin/jellyfin-vue:$(Version) \
--amend jellyfin/jellyfin-vue:$(Version)-armhf \
--amend jellyfin/jellyfin-vue:$(Version)-amd64 \
--amend jellyfin/jellyfin-vue:$(Version)-arm64
displayName: 'Build stable manifest'
docker manifest create \
jellyfin/jellyfin-vue:stable \
--amend jellyfin/jellyfin-vue:$(Version)-armhf \
--amend jellyfin/jellyfin-vue:$(Version)-amd64 \
--amend jellyfin/jellyfin-vue:$(Version)-arm64
jellyfin/jellyfin-vue:latest \
--amend jellyfin/jellyfin-vue:$(Version)-armhf \
--amend jellyfin/jellyfin-vue:$(Version)-amd64 \
--amend jellyfin/jellyfin-vue:$(Version)-arm64
displayName: 'Build stable manifests'
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/tags/v')
- script: |
docker manifest push jellyfin/jellyfin-vue:$(Version)
displayName: 'Push stable manifest'
docker manifest push jellyfin/jellyfin-vue:stable
docker manifest push jellyfin/jellyfin-vue:latest
displayName: 'Push stable manifests'
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/tags/v')