2020-08-15 20:50:47 +08:00
|
|
|
name: ci
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- releases/v*
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
main:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
logout:
|
|
|
|
- true
|
|
|
|
- false
|
2020-08-15 20:51:29 +08:00
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
|
|
|
uses: actions/checkout@v2.3.1
|
|
|
|
-
|
|
|
|
name: Login
|
2020-08-15 20:52:04 +08:00
|
|
|
uses: ./
|
2020-08-15 20:51:29 +08:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME_TEST }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD_TEST }}
|
|
|
|
logout: ${{ matrix.logout }}
|
2020-08-15 20:56:24 +08:00
|
|
|
-
|
|
|
|
name: Clear
|
|
|
|
if: always()
|
|
|
|
run: |
|
|
|
|
rm -f ${HOME}/.docker/config.json
|