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
74 docker push simgrid/tuto-s4u
75 - name: Create the failure Message
78 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
79 - name: Create the success Message
82 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
83 - uses: mattermost/action-mattermost-notify@master
85 MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
86 MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}
90 needs: docker-unstable
91 runs-on: ubuntu-latest
97 - name: Checkout repository
98 uses: actions/checkout@v2
100 # Login against a Docker registry except on PR
101 # https://github.com/docker/login-action
102 - name: Log into registry ${{ env.REGISTRY }}
103 uses: docker/login-action@v1
105 username: ${{ secrets.DOCKERHUB_USERNAME }}
106 password: ${{ secrets.DOCKERHUB_TOKEN }}
108 - name: build docker tuto-mc
111 docker push simgrid/tuto-mc
113 - name: Create the failure Message
116 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
117 - name: Create the success Message
120 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
121 - uses: mattermost/action-mattermost-notify@master
123 MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
124 MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}