Skip to content

Commit

Permalink
no longer runs on PR and set updated image path
Browse files Browse the repository at this point in the history
  • Loading branch information
Alec committed Nov 18, 2021
1 parent 3b09867 commit 9bf6088
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
name: docker build & publish

on:
pull_request:
paths-ignore:
- 'docs/**'
push:
branches:
- 'master'
Expand Down Expand Up @@ -43,29 +40,17 @@ jobs:
id: meta
uses: docker/metadata-action@v3
with:
images: wkd1/test
images: theyosh/terrariumpi
-
name: Login to DockerHub
if: steps.Dockerfile.outputs.files_exists == 'true'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build
if: steps.Dockerfile.outputs.files_exists == 'true'
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/arm/v7
cache-from: type=gha
cache-to: type=gha,mode=max
-
name: Build and push
if: steps.Dockerfile.outputs.files_exists == 'true' && GitHub.event_name == 'release'
if: steps.Dockerfile.outputs.files_exists == 'true'
uses: docker/build-push-action@v2
with:
context: .
Expand Down

0 comments on commit 9bf6088

Please sign in to comment.