Skip to content

Commit 27eb15f

Browse files
committed
ci: build redis-stunnel Docker image
1 parent df51303 commit 27eb15f

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

.github/workflows/continuous-deployment.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Continuous Deployment
33
on: workflow_dispatch
44

55
jobs:
6-
build:
6+
deploy-app:
77
name: Build and deploy app
88
runs-on: ubuntu-latest
99
steps:
@@ -28,3 +28,23 @@ jobs:
2828
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2929
HOMEBREW_TOOLS_TOKEN: ${{ secrets.HOMEBREW_TOOLS_TOKEN }}
3030
GIT_EMAIL: ${{ secrets.GIT_EMAIL }}
31+
32+
deploy-redis-stunnel:
33+
name: Build and deploy redis-stunnel Docker image
34+
runs-on: ubuntu-latest
35+
steps:
36+
- name: Checkout code
37+
uses: actions/checkout@v3
38+
39+
- name: Login to Docker Hub
40+
uses: docker/login-action@v2
41+
with:
42+
username: ${{ secrets.DOCKERHUB_USERNAME }}
43+
password: ${{ secrets.DOCKERHUB_TOKEN }}
44+
45+
- name: Build and push Docker image
46+
uses: docker/build-push-action@v4
47+
with:
48+
context: ./docker
49+
push: true
50+
tags: osrecki/redis-stunnel:latest

.github/workflows/continuous-integration.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Continuous Integration
33
on: push
44

55
jobs:
6-
build:
6+
build-app:
77
name: Build app
88
runs-on: ubuntu-latest
99
strategy:
@@ -26,3 +26,17 @@ jobs:
2626

2727
- name: Build
2828
run: npm run bundle
29+
30+
build-redis-stunnel:
31+
name: Build redis-stunnel Docker image
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Checkout code
35+
uses: actions/checkout@v3
36+
37+
- name: Build Docker image
38+
uses: docker/build-push-action@v4
39+
with:
40+
context: ./docker
41+
push: false
42+
tags: osrecki/redis-stunnel:latest

0 commit comments

Comments
 (0)