forked from softprops/lambda-rust
-
Notifications
You must be signed in to change notification settings - Fork 9
46 lines (44 loc) · 1.19 KB
/
nightly.yml
File metadata and controls
46 lines (44 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Build Nightly Rust
on:
workflow_dispatch:
schedule:
- cron: '0 4 * * 3'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
make build
make test
env:
RUST_VERSION: nightly
TAG: nightly
IMAGE: 'rustserverless/lambda-rust:nightly'
publish:
needs: [test]
if: github.repository == 'rust-serverless/lambda-rust'
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Publish
shell: bash
run: |
make publish-tag
env:
RUST_VERSION: nightly
TAG: nightly
create_issue:
runs-on: ubuntu-latest
needs: [publish]
if: always() && (needs.publish.result == 'failure')
steps:
- run: gh issue create --title "Nightly publication failed" --body "Nightly publication failed" --label "bug" -R $GITHUB_REPOSITORY
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}