Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare release v1.1.1 #67

Merged
merged 14 commits into from
May 15, 2020
1 change: 1 addition & 0 deletions .github/workflows/cd_prepare_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,4 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
destination_branch: "master"
pr_title: "Prepare release ${{ needs.job_compute_release_name.outputs.release_name }}"
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## [v1.1.1](https://github.com/faberNovel/docker-android/tree/v1.1.1) (2020-05-15)

[Full Changelog](https://github.com/faberNovel/docker-android/compare/v1.1.0...v1.1.1)

**Closed issues:**

- Add python description to image description [\#63](https://github.com/faberNovel/docker-android/issues/63)
- Documentation is outdated [\#62](https://github.com/faberNovel/docker-android/issues/62)
- Clean image description markdown [\#60](https://github.com/faberNovel/docker-android/issues/60)

**Merged pull requests:**

- Cleanup desc script formatting [\#65](https://github.com/faberNovel/docker-android/pull/65) ([sjcqs](https://github.com/sjcqs))
- Update script usage documentation [\#64](https://github.com/faberNovel/docker-android/pull/64) ([vincentbrison](https://github.com/vincentbrison))

## [v1.1.0](https://github.com/faberNovel/docker-android/tree/v1.1.0) (2020-05-13)

[Full Changelog](https://github.com/faberNovel/docker-android/compare/v1.0.0...v1.1.0)
Expand All @@ -21,6 +36,7 @@

**Merged pull requests:**

- Add action branding [\#59](https://github.com/faberNovel/docker-android/pull/59) ([github-actions[bot]](https://github.com/apps/github-actions))
- Feature/prepare action release [\#57](https://github.com/faberNovel/docker-android/pull/57) ([vincentbrison](https://github.com/vincentbrison))
- Document Github Action [\#56](https://github.com/faberNovel/docker-android/pull/56) ([sjcqs](https://github.com/sjcqs))
- Feature/update release flow [\#54](https://github.com/faberNovel/docker-android/pull/54) ([vincentbrison](https://github.com/vincentbrison))
Expand Down
21 changes: 9 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,25 @@ on:
- develop

jobs:
build_test_and_deploy:
my_android_job:
runs-on: ubuntu-18.04 # Works also with self hosted runner supporting docker
container:
image: docker://fabernovel/android:api-29-v1.0.0
image: docker://fabernovel/android:api-29-v1.1.0

steps:
- name: Checkout
uses: actions/checkout@v2.1.0

- name: Ruby cache
uses: actions/cache@v1.1.2
uses: actions/cache@v1.2.0
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-

- name: Gradle cache
uses: actions/cache@v1.1.2
uses: actions/cache@v1.2.0
with:
path: /root/.gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
Expand All @@ -67,8 +67,6 @@ jobs:
- name: Fastlane
run: bundle exec fastlane my_lane

- name: Cache workaround # https://github.com/actions/cache/issues/133
run: chmod -R a+rwx .
```
You can also use the provided Github Action.
However, caching won't work and you can expect longer build times.
Expand All @@ -82,20 +80,17 @@ on:
- develop

jobs:
build_test_and_deploy:
my_android_job:
runs-on: ubuntu-18.04 # Works also with self hosted runner supporting docker
container:
image: docker://docker:stable-git

steps:
- name: Checkout
uses: actions/checkout@v2.1.0

- name: Test action
- name: Exec fastlane
uses: fabernovel/docker-android
id: docker-android-action
with:
docker-android-tag: api-29-ndk-v1.0.0
docker-android-tag: api-29-ndk-v1.1.0
exec: |
bundle install;
bundle exec fastlane my_lane
Expand Down Expand Up @@ -132,7 +127,9 @@ usage: ./ci_cd.sh [--android-api 29] [--build] [--test]
--ndk-version <version> Install a specific Android NDK version from `sdkmanager --list`
--build Build image
--test Test image
--large-test Run large tests on the image (Firebase Test Lab for example)
--deploy Deploy image
--desc Generate a .md file in /desc/ouput folder describing the builded image, on host machine
```

## License
Expand Down
2 changes: 1 addition & 1 deletion ci_cd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ usage () {
echo " --test Test image"
echo " --large-test Run large tests on the image (Firebase Test Lab for example)"
echo " --deploy Deploy image"
echo " --desc Generate a desc.txt file describing the builded image, on host machine"
echo " --desc Generate a .md file in /desc/ouput folder describing the builded image, on host machine"
exit 1
}

Expand Down
48 changes: 39 additions & 9 deletions desc/desc.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,54 @@
#!/bin/sh
echo "## Image environment"
cat /etc/*-release
grep "DISTRIB_DESCRIPTION=.*$" /etc/*-release | # extract only distrib description
cut -d= -f2 # get distrib description value only

echo
echo "## Android environment"
echo "### Android SDKs"
sdkmanager --list --sdk_root=$ANDROID_HOME |
awk '/Installed packages:/{flag=1; next} /Available Packages/{flag=0} flag'
echo "### Google Cloud SDK"
gcloud --version
echo
echo "| Name | Version |"
echo "|------|---------|"
gcloud --version | while read -r lib; do
version=$(echo "${lib}" | awk '{ print $NF }')
name=$(echo $lib | awk '{$NF=""; print $0}')
echo "| $name | $version |"
done

echo "## APT packages"
dpkg -l
echo
echo "## Python environment"
echo "### Python version"
python3 --version | cut -d' ' -f2-
echo "### PIP version"
pip3 --version | cut -d' ' -f2-
echo "### Installed PIP packages"
echo "| Name | Version |"
echo "|------|---------|"
pip3 freeze | while read -r lib; do
version=$(echo "$lib" | awk -F'==' '{print $2}')
name=$(echo "$lib" | awk -F'==' '{print $1}')
echo "| $name | $version |"
done

echo "## Ruby environment"
echo "### Default ruby version"
ruby -v
ruby --version | cut -d' ' -f2-
echo "### rbenv"
rbenv -v
rbenv --version | cut -d' ' -f2-
echo "### Installed gems:"
gem list
echo "| Name | Version |"
echo "|------|---------|"
gem list | while read -r lib; do
version=$(echo $lib | awk -F"[()]" '{print $2}')
name=$(echo $lib | awk -F"[()]" '{print $1}')
echo "| $name | $version |"
done
echo

echo "## APT packages"
echo "| Name | Version | Architecture | Description |"
echo "| ---- | ------- | ------------ | ----------- |"
dpkg_format='| ${binary:Package} | ${Version} | ${Architecture} | ${binary:Summary} |\n'
dpkg-query --show --showformat="$dpkg_format"
done
Loading