Skip to content
Snippets Groups Projects
Verified Commit 720c9925 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

Merge branch '207-use-proper-release-versions'

parents 8dac48a3 e7761f14
No related branches found
No related tags found
No related merge requests found
The output of these commands is helpful to debug deployment errors:
oas-version-info.sh
kubectl get pods -A
helm ls
Please include this output if possible.
# Changelog
## [Unreleased]
No unreleased changes yet.
## [0.1.0] - 2019-07-31
This is the version for the alpha test.
>10000
0.1.0
#!/bin/bash -x
cat /var/lib/OpenAppStack/version.txt
kubectl version
kubectl krew version
docker version | grep -B2 Version
......
......@@ -102,10 +102,32 @@
- 'oas_controlshell'
become: true
- name: Record OpenAppStack version info
tags:
- version
shell: "{{ item }}"
with_items:
- cat ../VERSION
- git log --pretty=format:"%H" -n 1
- git tag -l $(<../VERSION) '--format=%(*objectname)'
delegate_to: localhost
register: openappstack_version
changed_when: false
- name: Create OpenAppStack version file
tags:
- version
template:
src: "version.txt"
dest: "/var/lib/OpenAppStack/version.txt"
mode: "0444"
become: true
- name: Install oas-version-info.sh script
tags:
- debug
- scripts
- version
copy:
dest: /usr/local/bin/
src: oas-version-info.sh
......
{% set version = openappstack_version.results[0].stdout %}
{% set hash = openappstack_version.results[1].stdout %}
{% set taghash = openappstack_version.results[2].stdout %}
VERSION: {{ version }}
{% if hash == taghash %}
git hash: {{ hash }}
https://open.greenhost.net/openappstack/openappstack/commit/{{ hash }}
{% else %}
modified up to: {{ hash }}
https://open.greenhost.net/openappstack/openappstack/commit/{{ hash }}
{% endif %}
......@@ -11,6 +11,7 @@ RUN apk --no-cache add \
# needed for installing pycurl python module
curl-dev \
gcc \
git \
libffi-dev \
make \
musl-dev \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment