Skip to content

Commit

Permalink
Add GitHub Action to publish docker image for new releases
Browse files Browse the repository at this point in the history
Resolve #1680
  • Loading branch information
ShockwaveNN committed Aug 11, 2022
1 parent 1212850 commit 7291afc
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/docker-hub-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: docker-hub-push
on:
push:
tags:
- '*'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64, linux/arm64
push: true
tags: |
presidentbeef/brakeman:latest
presidentbeef/brakeman:${{ github.ref_name }}

0 comments on commit 7291afc

Please sign in to comment.