- AWS Account
- AWS API User API Key/Secret
- Bitbucket Account
- Create or update an existing Bitbucket repo
- Open https://bitbucket.org/USERNAME/REPO/addon/pipelines/deployments
image: mingc/android-build-box:1.12.0 | |
pipelines: | |
branches: | |
master: | |
- step: | |
caches: | |
- gradle | |
- gradlewrapper | |
- androidavd |
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
annotations: | |
kubernetes.io/tls-acme: "true" | |
certmanager.k8s.io/cluster-issuer: letsencrypt-prod | |
nginx.ingress.kubernetes.io/secure-backends: "true" | |
name: ${CICD_GIT_REPO_NAME} | |
namespace: middle-web-${CICD_GIT_BRANCH} | |
spec: |
tags: | |
release-*: | |
- step: | |
name: Test for production | |
script: | |
- echo "run test" | |
- step: | |
name: Build for production | |
script: | |
- docker login -u $DOCKER_ID -p $DOCKER_PW |
options: | |
# Enable docker for the Pipeline | |
docker: true | |
pipelines: | |
branches: | |
master: | |
- step: | |
name: Build app for Production (create-react-app) | |
image: mhart/alpine-node:10 |
pipelines: | |
default: | |
- step: | |
script: | |
- echo "I made a pipeline!" | |
tags: # add the 'tags' section | |
release-*: # specify the tag | |
- step: # define the build pipeline for the tag | |
#python image with aws-cli installed | |
image: atlassian/pipelines-awscli |
In your command-line run the following commands:
brew doctor
brew update
image: uber/android-build-environment:latest | |
pipelines: | |
default: | |
- step: | |
script: | |
- echo y | android update sdk --filter "extra-android-m2repository" --no-ui -a # Grab the Android Support Repo which isn't included in the container | |
- mkdir "${ANDROID_HOME}/licenses" || true | |
- echo "8933bad161af4178b1185d1a37fbf41ea5269c55" > "${ANDROID_HOME}/licenses/android-sdk-license" | |
- ./gradlew assembleRelease |
#!/bin/bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
# Ubuntu Server | |
export DEBIAN_FRONTEND=noninteractive | |
echo -e "\e[96m Adding PPA \e[39m" | |
sudo add-apt-repository -y ppa:ondrej/apache2 |
#!/bin/sh | |
######################################################### | |
# usage | |
#do_mongoexport '2015-04-01' '2015-04-02' 'hoge' | |
######################################################### | |
get_millis() | |
{ | |
if [ $# != 1 ]; then |