We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7347266 commit 6602562Copy full SHA for 6602562
.github/workflows/docker-publish.yml
@@ -0,0 +1,19 @@
1
+name: Docker Image CI
2
+on:
3
+ push:
4
+ branches: [ master ]
5
+ pull_request:
6
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