Skip to content

Commit

Permalink
implement workflow for autodeployment of specific PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
untari committed May 28, 2024
1 parent b732ab8 commit 3a2a333
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/docker-pr-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Docker-pr-deploy
on:
workflow_dispatch:
inputs:
repository:
description: "Repository name with owner. For example, actions/checkout"
ref:
description: "The branch, tag or SHA to checkout."

jobs:
push_to_registry:
name: Push Docker image to Docker hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
with:
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}

- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
push: true
tags: eventyay/eventyay-talk:development
labels: manual

0 comments on commit 3a2a333

Please sign in to comment.