Merge pull request #124 from openeduhub/develop #939
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish | |
on: | |
push: | |
branches: | |
- develop | |
- master | |
- '**' | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+ | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: azure/docker-login@v1 | |
with: | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- name: Inject slug/short variables | |
uses: rlespinasse/github-slug-action@v4 | |
- 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 }} |