-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.02 KB
/
test-cache.yml
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
47
name: Test Cache
on:
push:
branches:
- trunk
pull_request:
branches:
- trunk
env:
IMAGE_NAME: jass-duckie-town-webservice
jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
env:
DOCKER_TARGET_PLATFORM: linux/arm64/v8
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@master
with:
platforms: arm64
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@master
- name: Build
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
file: ./Dockerfile2
platforms: linux/arm64/v8
push: false
tags: jass-duckie-town-webservice
labels: "runnumber=${GITHUB_RUN_ID}"
load: true
build-args: |
ARCH=arm64
TOKEN=${{ secrets.CACHE_TOKEN }}