Skip to content

Commit

Permalink
MAINT: Add dockhub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jwboth committed Apr 10, 2024
1 parent 6bef240 commit 6de8014
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/docker-hub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish Docker image for main branch

on:
workflow_dispatch:
# run jobs manually
push:
branches:
- main

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}

- name: Build and push stable
uses: docker/build-push-action@v3
with:
context: ./
file: ./dockerfiles/Dockerfile
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: ${{ github.repository }}/stable:latest

0 comments on commit 6de8014

Please sign in to comment.