Skip to content

Commit

Permalink
Added workflow to publish image to dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Kummerländer committed Mar 22, 2024
1 parent 9f891ee commit 6e62f1e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: publish

on:
push:
branches:
- main
- '**'

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: azure/docker-login@v1
with:
username: ${{ secrets.DOCKER_EDU_HUB_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_EDU_HUB_REGISTRY_PASSWORD }}
- uses: rlespinasse/[email protected]
- name: Build Docker image
run: docker build --tag ${{ github.repository }}:${{ env.GITHUB_REF_SLUG }} .
- name: Publish to DockerHub
run: docker push ${{ github.repository }}:${{ env.GITHUB_REF_SLUG }}

0 comments on commit 6e62f1e

Please sign in to comment.