Browse Source

copying tag to version

master
Drew Short 5 years ago
parent
commit
1ad29aaa4a
  1. 1
      Dockerfile
  2. 3
      bin/out
  3. 2
      tag

1
Dockerfile

@ -3,4 +3,5 @@ RUN DEBIAN_FRONTENT=noninteractive && \
apt-get update && apt-get -y install jq curl gettext-base apt-get update && apt-get -y install jq curl gettext-base
COPY bin/ /opt/resource/ COPY bin/ /opt/resource/
COPY tag /opt/resource/version
RUN chmod +x /opt/resource/* RUN chmod +x /opt/resource/*

3
bin/out

@ -18,7 +18,8 @@ payload=$(mktemp /tmp/resource-in.XXXXXX)
cat > "${payload}" <&0 cat > "${payload}" <&0
echo "Matrix-Notification-Resource Version: 1.0.0"
version=$(cat version)
echo "Matrix-Notification-Resource Version: ${version}"
matrix_server_url="$(jq -r '.source.matrix_server_url' < "${payload}")" matrix_server_url="$(jq -r '.source.matrix_server_url' < "${payload}")"
token="$(jq -r '.source.token' < "${payload}")" token="$(jq -r '.source.token' < "${payload}")"

2
tag

@ -1 +1 @@
1.0.1
1.0.2
Loading…
Cancel
Save