mirror of
https://github.com/jellyfin/jellyfin-vue.git
synced 2024-12-02 19:16:40 +00:00
fix(ci): remove pr image tasks, add stable and latest manifests
This commit is contained in:
parent
f6057a776f
commit
21484c06b0
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user