Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
feat: release to Docker when a release gets published (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
danirod authored Dec 6, 2019
1 parent 603cac5 commit 265e81b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker
name: Push current master branch to the Docker registry
on:
push:
branches:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/docker-push-on-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Push current master branch to the Docker registry
on:
release:
types:
- published
jobs:
docker_registry:
name: Push Clank image to the registry
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Build Dockerfile
run: docker build -t docker.pkg.github.com/${{ github.repository }}/clank:${GITHUB_REF##*/} .
- name: Push to GitHub
run: |
echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com --username ${{ github.actor }} --password-stdin
docker push docker.pkg.github.com/${{ github.repository }}/clank:${GITHUB_REF##*/}

0 comments on commit 265e81b

Please sign in to comment.