Skip to content

Commit

Permalink
Added new github action for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
onel committed Jan 11, 2024
1 parent 6d632e6 commit 82eaaef
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/docker-hub-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Docker Hub

on:
release:
types:
- created

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3

-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

-
name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: peermetrics/web:${{ github.event.release.tag_name }}

- name: Logout from Docker Hub
run: docker logout

0 comments on commit 82eaaef

Please sign in to comment.