-
Notifications
You must be signed in to change notification settings - Fork 13
37 lines (33 loc) · 958 Bytes
/
main.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
name: Build New MID Images
on:
push:
branches: [master]
schedule:
- cron: "0 20 * * SAT"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: amd64,arm64
- name: Refresh the MIDs
env:
DOCKER_USER_NAME: ${{ secrets.DOCKER_USER_NAME }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
MONGODB_URL: ${{ secrets.MONGODB_URL }}
MONGODB_NAME: ${{ secrets.MONGODB_NAME }}
FORCE_REFRESH: ${{ secrets.FORCE_REFRESH }}
run: |
docker run --rm \
--env DOCKER_USER_NAME \
--env DOCKER_TOKEN \
--env MONGODB_URL \
--env MONGODB_NAME \
--env FORCE_REFRESH \
-v /var/run/docker.sock:/var/run/docker.sock \
$(docker build -q .)