-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (26 loc) · 908 Bytes
/
docker.yml
File metadata and controls
33 lines (26 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: CI
on: [ push, workflow_dispatch ]
env:
DOCKER_BUILDKIT: 1
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
version: [ latest ]
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Build images
run: docker build --pull -t kooldev/pause:${{ matrix.version }} .
- name: Test docker imagess
run: docker run kooldev/pause:${{ matrix.version }} -v
- name: Login to DockerHub
uses: docker/login-action@v1
if: github.ref == 'refs/heads/master' && github.repository == 'kool-dev/docker-pause'
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push to Hub
if: github.ref == 'refs/heads/master' && github.repository == 'kool-dev/docker-pause'
run: docker push kooldev/pause:${{ matrix.version }}