-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 976 Bytes
/
docker.yaml
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
name: Docker
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+"
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Update toolchain
run: rustup update
- name: Checkout code
uses: actions/checkout@v2
- name: Run Rust tests
run: cargo test --verbose
docker:
runs-on: ubuntu-latest
needs:
- test
permissions:
packages: write
steps:
- name: Update toolchain
run: rustup update
- name: Checkout code
uses: actions/checkout@v2
- name: Build and push Docker image
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
repository: scotow/meta-cross/meta-cross
dockerfile: Dockerfile
tag_with_ref: true
tag_with_sha: true
tags: latest
push: true