3 # This workflow uses actions that are not certified by GitHub.
4 # They are provided by a third-party and are governed by
5 # separate terms of service, privacy policy, and support
16 runs-on: ubuntu-latest
22 - name: Checkout repository
23 uses: actions/checkout@v2
25 # Login against a Docker registry except on PR
26 # https://github.com/docker/login-action
27 - name: Log into registry ${{ env.REGISTRY }}
28 uses: docker/login-action@v1
30 username: ${{ secrets.DOCKERHUB_USERNAME }}
31 password: ${{ secrets.DOCKERHUB_TOKEN }}
33 - name: build docker unstable
37 docker push simgrid/unstable
38 - name: Create the failure Message
41 echo "{\"attachments\": [{\"color\": \"#FF0000\", \"text\":\"Failure when building docker unstable ! See ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json
42 - name: Create the success Message
45 echo "{\"attachments\": [{\"color\": \"#00FF00\", \"text\":\"Docker unstable built and pushed successfully ! ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json
46 - uses: mattermost/action-mattermost-notify@master
48 MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
49 MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}
53 # the Dockerfile builds upon the docker-unstable image, so add a dependency
54 needs: docker-unstable
55 runs-on: ubuntu-latest
61 - name: Checkout repository
62 uses: actions/checkout@v2
64 # Login against a Docker registry except on PR
65 # https://github.com/docker/login-action
66 - name: Log into registry ${{ env.REGISTRY }}
67 uses: docker/login-action@v1
69 username: ${{ secrets.DOCKERHUB_USERNAME }}
70 password: ${{ secrets.DOCKERHUB_TOKEN }}
72 - name: build docker tuto-s4u
76 docker push simgrid/tuto-s4u
77 - name: Create the failure Message
80 echo "{\"attachments\": [{\"color\": \"#FF0000\", \"text\":\"Failure when building docker tuto-s4u image ! See ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json
81 - name: Create the success Message
84 echo "{\"attachments\": [{\"color\": \"#00FF00\", \"text\":\"Docker tuto-s4u image built and pushed successfully ! ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json
85 - uses: mattermost/action-mattermost-notify@master
87 MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
88 MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}
92 # the Dockerfile builds upon debian:testing
93 runs-on: ubuntu-latest
99 - name: Checkout repository
100 uses: actions/checkout@v2
102 # Login against a Docker registry except on PR
103 # https://github.com/docker/login-action
104 - name: Log into registry ${{ env.REGISTRY }}
105 uses: docker/login-action@v1
107 username: ${{ secrets.DOCKERHUB_USERNAME }}
108 password: ${{ secrets.DOCKERHUB_TOKEN }}
110 - name: build docker tuto-mc
114 docker push simgrid/tuto-mc
116 - name: Create the failure Message
119 echo "{\"attachments\": [{\"color\": \"#FF0000\", \"text\":\"Failure when building docker tuto-mc image ! See ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json
120 - name: Create the success Message
123 echo "{\"attachments\": [{\"color\": \"#00FF00\", \"text\":\"Docker tuto-mc image built and pushed successfully ! ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json
124 - uses: mattermost/action-mattermost-notify@master
126 MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
127 MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}