Skip to content
This repository has been archived by the owner on Feb 19, 2023. It is now read-only.

Commit

Permalink
👷 Build and publish image on push (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrink authored Aug 21, 2020
1 parent 2f06916 commit 4ba693b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish Docker Image

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build (+ Publish If Tagged)
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ github.token }}
registry: docker.pkg.github.com
repository: ${{ github.repository }}/actions-document-publish
tag_with_ref: true
add_git_labels: true
push: ${{ startsWith(github.ref, 'refs/tags/') }}

0 comments on commit 4ba693b

Please sign in to comment.