Skip to content

Merge pull request #118 from openeduhub/feat_oer_pipeline #917

Merge pull request #118 from openeduhub/feat_oer_pipeline

Merge pull request #118 from openeduhub/feat_oer_pipeline #917

Workflow file for this run

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 }}