Add target claasp-base when docker image is building. #51
Workflow file for this run
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: Generate and submit documentation | |
on: | |
push: | |
branches: | |
- fix/generate-documentation-workflow | |
jobs: | |
generate-documentation: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Build Docker image | |
uses: docker/build-push-action@v5 | |
id: built-image | |
with: | |
context: . | |
file: ./docker/Dockerfile | |
push: false | |
load: true | |
target: claasp-base | |
- name: Generate documentation | |
run: docker run --rm -v $PWD:/home/sage/tii-claasp claasp-base make doc | |
- name: Commit & Push changes | |
uses: actions-js/push@master | |
with: | |
github_token: ${{ secrets.AUTHORIZATION_TOKEN }} | |
message: "Update documentation" | |
- name: Update develop branch | |
uses: morbalint/git-merge-action@v1 | |
with: | |
target: 'develop' | |
source: 'main' | |
token: ${{ secrets.AUTHORIZATION_TOKEN }} | |
strategy_options: 'ours' |