|
| 1 | +# Note: remove this file (squash-removing the underlying commit) before merging |
| 2 | +name: Push oauth-moodle to DockerHub |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - oauth-moodle |
| 7 | + - oauth-moodle-dev |
| 8 | +jobs: |
| 9 | + push_server: |
| 10 | + name: Push learn-ocaml image to Docker Hub |
| 11 | + runs-on: ubuntu-latest |
| 12 | + steps: |
| 13 | + - name: Check out the repo |
| 14 | + uses: actions/checkout@v2 |
| 15 | + - name: Get branch name |
| 16 | + run: branch="${{ github.ref }}"; echo "::set-output name=branch::${branch#refs/heads/}" |
| 17 | + id: branch |
| 18 | + - name: Push to Docker Hub |
| 19 | + uses: docker/build-push-action@v1 |
| 20 | + with: |
| 21 | + always_pull: true |
| 22 | + add_git_labels: true |
| 23 | + labels: "org.opencontainers.image.version=${{ steps.branch.outputs.branch }}" |
| 24 | + username: ${{ secrets.DOCKER_USERNAME }} |
| 25 | + password: ${{ secrets.DOCKER_PASSWORD }} |
| 26 | + # repository: ocamlsf/learn-ocaml |
| 27 | + repository: pfitaxel/learn-ocaml |
| 28 | + tags: ${{ steps.branch.outputs.branch }} |
| 29 | + push_client: |
| 30 | + name: Push learn-ocaml-client image to Docker Hub |
| 31 | + runs-on: ubuntu-latest |
| 32 | + steps: |
| 33 | + - name: Check out the repo |
| 34 | + uses: actions/checkout@v2 |
| 35 | + - name: Get branch name |
| 36 | + run: branch="${{ github.ref }}"; echo "::set-output name=branch::${branch#refs/heads/}" |
| 37 | + id: branch |
| 38 | + - name: Push to Docker Hub |
| 39 | + uses: docker/build-push-action@v1 |
| 40 | + with: |
| 41 | + always_pull: true |
| 42 | + add_git_labels: true |
| 43 | + labels: "org.opencontainers.image.version=${{ steps.branch.outputs.branch }}" |
| 44 | + username: ${{ secrets.DOCKER_USERNAME }} |
| 45 | + password: ${{ secrets.DOCKER_PASSWORD }} |
| 46 | + # repository: ocamlsf/learn-ocaml-client |
| 47 | + repository: pfitaxel/learn-ocaml-client |
| 48 | + target: client |
| 49 | + tags: ${{ steps.branch.outputs.branch }} |
0 commit comments