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 needs: docker-unstable
54 runs-on: ubuntu-latest
60 - name: Checkout repository
61 uses: actions/checkout@v2
63 # Login against a Docker registry except on PR
64 # https://github.com/docker/login-action
65 - name: Log into registry ${{ env.REGISTRY }}
66 uses: docker/login-action@v1
68 username: ${{ secrets.DOCKERHUB_USERNAME }}
69 password: ${{ secrets.DOCKERHUB_TOKEN }}
71 - name: build docker tuto-s4u
75 docker push simgrid/tuto-s4u
76 - name: Create the failure Message
79 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
80 - name: Create the success Message
83 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
84 - uses: mattermost/action-mattermost-notify@master
86 MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
87 MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}
91 needs: docker-unstable
92 runs-on: ubuntu-latest
98 - name: Checkout repository
99 uses: actions/checkout@v2
101 # Login against a Docker registry except on PR
102 # https://github.com/docker/login-action
103 - name: Log into registry ${{ env.REGISTRY }}
104 uses: docker/login-action@v1
106 username: ${{ secrets.DOCKERHUB_USERNAME }}
107 password: ${{ secrets.DOCKERHUB_TOKEN }}
109 - name: build docker tuto-mc
113 docker push simgrid/tuto-mc
115 - name: Create the failure Message
118 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
119 - name: Create the success Message
122 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
123 - uses: mattermost/action-mattermost-notify@master
125 MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
126 MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}