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
36 docker pull simgrid/unstable
37 docker tag simgrid/unstable simgrid/unstable_old
38 docker pull simgrid/stable
40 git clone https://github.com/adegomme/master_worker_flashback
41 cd master_worker_flashback
44 - name: Create the failure Message
47 echo "{\"attachments\": [{\"color\": \"#FF0000\", \"text\":\"Failure when building docker unstable ! See ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json
48 - name: Create the success Message
51 echo "{\"attachments\": [{\"color\": \"#00FF00\", \"text\":\"Docker unstable built and pushed successfully ! ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json
52 - uses: mattermost/action-mattermost-notify@master
54 MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
55 MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}
60 # the Dockerfile builds upon debian:testing
61 runs-on: ubuntu-latest
67 - name: Checkout repository
68 uses: actions/checkout@v3
70 # Login against a Docker registry except on PR
71 # https://github.com/docker/login-action
72 - name: Log into registry ${{ env.REGISTRY }}
73 uses: docker/login-action@v1
75 username: ${{ secrets.DOCKERHUB_USERNAME }}
76 password: ${{ secrets.DOCKERHUB_TOKEN }}
78 - name: build docker tuto-mc
82 docker push simgrid/tuto-mc
84 - name: Create the failure Message
87 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
88 - name: Create the success Message
91 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
92 - uses: mattermost/action-mattermost-notify@master
94 MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
95 MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}