image: atlassian/default-image:1.363
definitions:
branches:
feature/ION-565-dotnet-autodeploy:
- step: &dotnet-framework
name: Build dotnet
runs-on:
- self.hosted
- windows
clone:
enabled: true
script:
- msbuild modules/test.sln
- Compress-Archive * app.zip
artifacts:
- app.zip
- step: &upload-to-s3
name: Upload to S3
services:
- docker
script:
- pipe: atlassian/aws-code-deploy:0.2.10
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
COMMAND: 'upload'
APPLICATION_NAME: $APPLICATION_NAME
ZIP_FILE: 'app.zip'
pipelines:
branches:
feature/ION-565-dotnet-autodeploy:
- step:
<<: *dotnet-framework
name: Build dotnet for Sandbox
deployment: sandbox
trigger: automatic
- step:
<<: *upload-to-s3
name: Upload to S3 for Sandbox
trigger: automatic
can anyone help me with my pipeline. I am just learning butbucket pipeline and I am using windows runner. please share your knowledge
@Abu Bakir Uralov hi. Look at the example below of how to use anchors:
image:
name: atlassian/default-image:3
test: &test
parallel:
- step:
name: Build and Test
image: python:3.7
script:
-
services:
- docker
- step:
name: Lint the Dockerfile
image: hadolint/hadolint:latest-debian
script:
- hadolint Dockerfile
push: &push
step:
name: Push and Tag
image: python:3.7
script:
- pipe: atlassian/bitbucket-pipe-release:5.0.1
services:
- docker
pipelines:
default:
- <<: *test
branches:
master:
- <<: *test
- <<: *push
Or you can check this page: yaml anchors.
Regards, Igor
Thank you Igor. I was working on runner for windows. Do you have any idea about bitbucket pipeline runner?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Abu Bakir Uralov hi. You can check this articles for windows runners:
blog-windows-runners , set-up-runners-for-windows .
Regards, Igor.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.