mirror of https://github.com/akaunting/docker.git
Change formatting to block
This commit is contained in:
parent
fd47379b3c
commit
acd02c8764
|
@ -16,17 +16,17 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Define tags
|
- name: Define tags
|
||||||
id: define-tags
|
id: define-tags
|
||||||
run: >
|
run: |
|
||||||
if [ "${GITHUB_REF}" == "refs/heads/master" -a "${GITHUB_EVENT_NAME}" != "pull_request" ]; then
|
if [ "${GITHUB_REF}" == "refs/heads/master" -a "${GITHUB_EVENT_NAME}" != "pull_request" ]; then
|
||||||
curl -s https://api.github.com/repos/akaunting/akaunting/releases/latest
|
curl -s https://api.github.com/repos/akaunting/akaunting/releases/latest \
|
||||||
| jq -r .tag_name | sed
|
| jq -r .tag_name | sed \
|
||||||
-e 's/\(\(\([0-9]\+\)\.[0-9]\+\)\.[0-9]\+\)/\1,\2,\3,/'
|
-e 's/\(\(\([0-9]\+\)\.[0-9]\+\)\.[0-9]\+\)/\1,\2,\3,/' \
|
||||||
-e 's/\([^,]\+\),/akaunting\/akaunting:\1,/g'
|
-e 's/\([^,]\+\),/akaunting\/akaunting:\1,/g' \
|
||||||
-e 's/^/::set-output name=tags::/'
|
-e 's/^/::set-output name=tags::/' \
|
||||||
-e 's/$/akaunting\/akaunting:latest/';
|
-e 's/$/akaunting\/akaunting:latest/'
|
||||||
else;
|
else
|
||||||
echo -n "::set-output name=tags::akaunting/akaunting:";
|
echo -n "::set-output name=tags::akaunting/akaunting:"
|
||||||
echo "$GITHUB_REF" | cut -d/ -f3- | tr '/' '_';
|
echo "$GITHUB_REF" | cut -d/ -f3- | tr '/' '_'
|
||||||
fi
|
fi
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
|
|
Loading…
Reference in New Issue