Skip to content

Commit 34e140e

Browse files
committed
Added GitHub action
1 parent 8ed9727 commit 34e140e

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish container image
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
publish_to_registry:
10+
name: Build and push image to registry
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check out the repo
14+
uses: actions/checkout@v2
15+
16+
- name: Log in to Docker Hub
17+
uses: docker/login-action@v1.10.0
18+
with:
19+
username: ${{ secrets.DOCKERHUB_USER }}
20+
password: ${{ secrets.DOCKERHUB_TOKEN }}
21+
22+
- name: Run script file
23+
run: |
24+
chmod +x ./deploy.sh
25+
./deploy.sh ibmcom
26+
shell: bash

0 commit comments

Comments
 (0)