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@v3
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}}
54 # the Dockerfile builds upon debian:testing
55 runs-on: ubuntu-latest
61 - name: Checkout repository
62 uses: actions/checkout@v3
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-mc
76 docker push simgrid/tuto-mc
78 - name: Create the failure Message
81 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
82 - name: Create the success Message
85 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
86 - uses: mattermost/action-mattermost-notify@master
88 MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
89 MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}