Skip to content

Instantly share code, notes, and snippets.

View iqan's full-sized avatar
🎯
Focusing

Iqan Shaikh iqan

🎯
Focusing
View GitHub Profile
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
storePassword=#{KEYSTORE_PASS}#
keyPassword=#{KEYSTORE_KEY_PASS}#
keyAlias=uploadkey
storeFile=./key1.jks
.\keytool.exe -genkey -v -keystore .\key1.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias uploadkey
name: Demo App Android Release
on:
push:
branches: [ master ]
jobs:
version:
name: Create version number
runs-on: ubuntu-latest
build:
name: Build APK and Create release
needs: [ version ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
jobs:
version:
name: Create version number
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Fetch all history for all tags and branches
run: |
git fetch --prune --depth=10000
- name: Install GitVersion
name: Demo App Android Release
on:
push:
branches: [ master ]
@iqan
iqan / azure-pipelines.yml
Last active April 4, 2020 23:48
Azure pipeline configuration file to Build, push an image to Azure Container Registry and Deploy to Web App
# Docker
# Build, push an image to Azure Container Registry and Deploy to Web App
# https://docs.microsoft.com/azure/devops/pipelines/languages/docker
trigger:
- master
resources:
- repo: self
@iqan
iqan / Dockerfile
Created April 4, 2020 20:01
Docker file to build image for React App with Nginx
# build stage
FROM node:12.2.0-alpine as build
WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
COPY package.json /app/package.json
RUN npm install --silent
COPY . /app
RUN npm run build
# final stage