ci: docker: Style improvements

This commit is contained in:
Richard Hansen 2022-01-27 17:43:05 -05:00
parent f334fb8280
commit 3a31ebde4b
1 changed files with 8 additions and 4 deletions

View File

@ -9,9 +9,11 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Check out
-
name: Check out
uses: actions/checkout@v2
- name: Docker meta
-
name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
@ -21,13 +23,15 @@ jobs:
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Log in to Docker Hub
-
name: Log in to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
-
name: Build and push
uses: docker/build-push-action@v2
with:
context: .