Skip to content

Commit

Permalink
Add docker action to deploy the image to DockerHub (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
umutphp committed Nov 15, 2023
1 parent 4925940 commit 86bd25e
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy Docker Image

on:
release:
types: [published]

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build And Push
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile
push: true
tags: hadican/failedkite:${{ github.ref_name }}

0 comments on commit 86bd25e

Please sign in to comment.