-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed: improvements towards a functional docker push job
What does this change do ? - Changed: improvements towards a functional docker push job - Fixes broken azure pipeline Why is this change needed ? - To ensure docker push works as required
- Loading branch information
1 parent
006f3e3
commit 0607f20
Showing
10 changed files
with
305 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
# @format | ||
--- | ||
stages: | ||
- stage: Push | ||
displayName: Push images | ||
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master') | ||
dependsOn: [] | ||
jobs: | ||
- job: push_saleor_core | ||
displayName: Push saleor-core image | ||
condition: always() | ||
steps: | ||
- template: ../init_step.yaml | ||
|
||
- task: Bash@3 | ||
displayName: Push saleor-core image | ||
inputs: | ||
targetType: "inline" | ||
workingDirectory: "$(Build.Repository.LocalPath)" | ||
failOnStderr: false | ||
noProfile: true | ||
noRc: true | ||
script: | | ||
make build_saleor_core | ||
make push_saleor_core | ||
env: | ||
REGISTRY_TOKEN: $(registryToken) | ||
FORCE_PUSH_IMAGES: $(forcePush) | ||
|
||
- job: push_saleor_core_dev | ||
displayName: Push saleor-core-dev image | ||
condition: always() | ||
steps: | ||
- template: ../init_step.yaml | ||
|
||
- task: Bash@3 | ||
displayName: Push saleor-core-dev image | ||
inputs: | ||
targetType: "inline" | ||
workingDirectory: "$(Build.Repository.LocalPath)" | ||
failOnStderr: false | ||
noProfile: true | ||
noRc: true | ||
script: | | ||
make build_saleor_core_dev | ||
make push_saleor_core_dev | ||
env: | ||
REGISTRY_TOKEN: $(registryToken) | ||
FORCE_PUSH_IMAGES: $(forcePush) | ||
|
||
- job: push_saleor_dashboard | ||
displayName: Push saleor-dashboard image | ||
condition: always() | ||
steps: | ||
- template: ../init_step.yaml | ||
|
||
- task: Bash@3 | ||
displayName: Push saleor-dashboard image | ||
inputs: | ||
targetType: "inline" | ||
workingDirectory: "$(Build.Repository.LocalPath)" | ||
failOnStderr: false | ||
noProfile: true | ||
noRc: true | ||
script: | | ||
make build_saleor_dashboard | ||
make push_saleor_dashboard | ||
env: | ||
REGISTRY_TOKEN: $(registryToken) | ||
FORCE_PUSH_IMAGES: $(forcePush) | ||
|
||
- job: push_saleor_storefront | ||
displayName: Push saleor-storefront image | ||
condition: always() | ||
steps: | ||
- template: ../init_step.yaml | ||
|
||
- task: Bash@3 | ||
displayName: Push saleor-storefront image | ||
inputs: | ||
targetType: "inline" | ||
workingDirectory: "$(Build.Repository.LocalPath)" | ||
failOnStderr: false | ||
noProfile: true | ||
noRc: true | ||
script: | | ||
make build_saleor_storefront | ||
make push_saleor_storefront | ||
env: | ||
REGISTRY_TOKEN: $(registryToken) | ||
FORCE_PUSH_IMAGES: $(forcePush) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
node_modules | ||
.env | ||
saleor_core | ||
saleor_core_dev | ||
saleor_dashboard | ||
saleor_storefront | ||
charts/saleor-platform/charts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.