Skip to content

Commit bb2e421

Browse files
authored
Merge pull request #24 from IBM-Cloud/issue_2780
added automation for container image build and diagram update
2 parents f2fec45 + 3a79308 commit bb2e421

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish container image
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish_to_registry:
9+
name: Build and push image to registry
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out the repo
13+
uses: actions/checkout@v2
14+
15+
- name: Log in to Docker Hub
16+
uses: docker/[email protected]
17+
with:
18+
username: ${{ secrets.DOCKERHUB_USER }}
19+
password: ${{ secrets.DOCKERHUB_TOKEN }}
20+
21+
- name: Extract metadata (tags, labels) for Docker
22+
id: meta
23+
uses: docker/[email protected]
24+
with:
25+
images: ${{ secrets.DOCKERHUB_ORG }}/${{ secrets.DOCKERHUB_REPOSITORY }}
26+
27+
- name: Build and push image
28+
uses: docker/[email protected]
29+
with:
30+
context: .
31+
push: true
32+
tags: ${{ steps.meta.outputs.tags }}
33+
labels: ${{ steps.meta.outputs.labels }}

Architecture.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)