forked from tatsushid/docker-tinycore
-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (35 loc) · 1.04 KB
/
main.yml
File metadata and controls
39 lines (35 loc) · 1.04 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
name: docker-tinycore
on:
push:
branches:
- '*'
paths-ignore:
- '**/README.md'
pull_request:
branches:
- '*'
schedule:
- cron: "5 8 * * 0" # At 08:05 in every Sunday.
workflow_dispatch:
jobs:
image:
name: docker-tinycore
runs-on: ubuntu-latest
steps:
- name: "📥 Checkout Code"
uses: actions/checkout@v2.4.0
with:
submodules: 'recursive'
fetch-depth: 0
- name: "🛠️ Build"
run: make all -j1
- name: "Retag image"
run: |
docker images --filter=reference='tinycore' --format='{{.Repository}}:{{.Tag}}' | xargs -r -P$(nproc) -I {} docker image tag {} bensuperpc/{}
docker image tag bensuperpc/tinycore:12.0-x86_64 bensuperpc/tinycore:latest
- name: "Logging to docker"
run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASS }}
- name: "📤 Upload to hub.docker.com"
run: docker push bensuperpc/tinycore --all-tags
- name: "🧹 Clean"
run: make clean