Skip to content

Commit 6602562

Browse files
Add CI/CD rules
1 parent 7347266 commit 6602562

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/docker-publish.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Docker Image CI
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
branches: [ master ]
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Docker login
13+
run: docker login -u "${{ secrets.DOCKER_USER }}" -p "${{ secrets.DOCKER_PASSWORD }}"
14+
- name: Build & push
15+
env:
16+
CONTAINER_IMAGE: ${{ secrets.DOCKER_USER }}/redis:alpine
17+
run: |
18+
docker build -t $CONTAINER_IMAGE .
19+
docker push $CONTAINER_IMAGE

0 commit comments

Comments
 (0)