Skip to content

Commit 74a58ed

Browse files
committed
chore: #30 Adding tagged containerg image build on release + fix build shield url in README
Signed-off-by: Laurent Broudoux <[email protected]>
1 parent 5576a11 commit 74a58ed

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.github/workflows/build-verify.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,22 @@ jobs:
1717
run: |
1818
./build-binaries.sh github.com/microcks/microcks-cli
1919
20+
- name: Set environment for branch
21+
run: |
22+
set -x
23+
if [[ $GITHUB_REF == 'refs/heads/master' ]]; then
24+
echo "IMAGE_TAG=nightly" >> "$GITHUB_ENV"
25+
elif [[ $GITHUB_REF == "refs/tags/$GITHUB_REF_NAME" ]]; then
26+
echo "IMAGE_TAG=$GITHUB_REF_NAME" >> "$GITHUB_ENV"
27+
fi
28+
2029
- name: Package container image for cli
2130
if: github.repository_owner == 'microcks'
2231
run: |
23-
docker build -f build/Dockerfile -t quay.io/microcks/microcks-cli:nightly .
32+
docker build -f build/Dockerfile -t quay.io/microcks/microcks-cli:$IMAGE_TAG .
2433
2534
- name: Login and push to Quay.io Registry
2635
if: github.repository_owner == 'microcks'
2736
run: |
2837
echo ${{ secrets.QUAY_PASSWORD }} | docker login -u ${{ secrets.QUAY_USERNAME }} --password-stdin quay.io
29-
docker push quay.io/microcks/microcks-cli:nightly
38+
docker push quay.io/microcks/microcks-cli:$IMAGE_TAG

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
Simple CLI for interacting with Microcks server APIs.
44
It allows to launch tests or import API artifacts with minimal dependencies.
55

6-
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/microcks/microcks-cli/build-verify.yml?branch=main&logo=github&style=for-the-badge)](https://github.com/microcks/microcks-cli/actions)
6+
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/microcks/microcks-cli/build-verify.yml?logo=github&style=for-the-badge)](https://github.com/microcks/microcks-cli/actions)
77
[![Container](https://img.shields.io/badge/dynamic/json?color=blue&logo=docker&style=for-the-badge&label=Quay.io&query=tags[0].name&url=https://quay.io/api/v1/repository/microcks/microcks-cli/tag/?limit=10&page=1&onlyActiveTags=true)](https://quay.io/repository/microcks/microcks-cli?tab=tags)
88
[![License](https://img.shields.io/github/license/microcks/microcks-cli?style=for-the-badge&logo=apache)](https://www.apache.org/licenses/LICENSE-2.0)
99
[![Project Chat](https://img.shields.io/badge/chat-on_zulip-pink.svg?color=ff69b4&style=for-the-badge&logo=zulip)](https://microcksio.zulipchat.com/)
1010

1111

1212
## Build Status
1313

14-
Current development version is `0.5.3-SNAPSHOT`. [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/microcks/microcks-cli/build-verify.yml?branch=1.8.x&logo=github&style=for-the-badge)](https://github.com/microcks/microcks-cli/actions)
14+
Current development version is `0.5.3-SNAPSHOT`. [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/microcks/microcks-cli/build-verify.yml?logo=github&style=for-the-badge)](https://github.com/microcks/microcks-cli/actions)
1515

1616
## Usage instructions
1717

0 commit comments

Comments
 (0)