Skip to content

Commit

Permalink
GHA: More fixes to push condition [GH-180]
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed May 24, 2020
1 parent 0dcb757 commit 5ff5a88
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ on:
paths-ignore:
- '**/*.md'
- '**/*.txt'
- '.*'
push:
branches:
- "master"
- "dev*"
paths-ignore:
- '**/*.md'
- '**/*.txt'
- '**/*.yml'
- '.*'
release:
types:
- published
Expand All @@ -40,18 +41,21 @@ jobs:
--build-arg VERSION=${GITHUB_REF}
--target ea-tester .
- run: docker images
- name: Prints GitHub actor and repository
run: echo "${{ github.actor }} & ${{ github.repository }}"
- name: Push to Docker Hub
if: github.actor == 'ea31337'
if: github.repository == 'EA31337/EA-Tester'
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: ea31337/ea-tester
tag_with_ref: true
- name: Push to GitHub Packages
if: github.actor == 'ea31337'
if: github.repository == 'EA31337/EA-Tester'
uses: docker/build-push-action@v1
with:
add_git_labels: true
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
Expand Down

0 comments on commit 5ff5a88

Please sign in to comment.