Skip to content

Commit 9ea9f66

Browse files
authored
Merge pull request #251 from beevelop/update
Update image
2 parents fd413f0 + af4f980 commit 9ea9f66

File tree

5 files changed

+88
-19
lines changed

5 files changed

+88
-19
lines changed

.github/workflows/docker.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Docker Image
2+
3+
on:
4+
schedule:
5+
- cron: "0 18 * * *" # everyday at 6pm
6+
push:
7+
branches: ["**"]
8+
tags: ["v*.*.*"]
9+
10+
env:
11+
platforms: linux/amd64
12+
13+
jobs:
14+
main:
15+
runs-on: ubuntu-20.04
16+
timeout-minutes: 30
17+
steps:
18+
- name: Check out the repo
19+
uses: actions/checkout@v2
20+
- name: Set imageName based on the repository name
21+
id: step_one
22+
run: |
23+
imageName="${GITHUB_REPOSITORY/docker-/}"
24+
echo $imageName
25+
echo "imageName=$imageName" >> $GITHUB_ENV
26+
- name: Docker meta
27+
id: docker_meta
28+
uses: crazy-max/ghaction-docker-meta@v1
29+
with:
30+
images: ${{ env.imageName }}
31+
- name: Set up QEMU
32+
uses: docker/setup-qemu-action@v1
33+
- name: Set up Docker Buildx
34+
uses: docker/setup-buildx-action@v1
35+
- name: Login to Harbor
36+
uses: docker/login-action@v1
37+
with:
38+
username: ${{ secrets.DOCKERHUB_USERNAME }}
39+
password: ${{ secrets.DOCKERHUB_TOKEN }}
40+
- name: Buildx cache
41+
uses: actions/cache@v1
42+
with:
43+
path: ${{ github.workspace }}/cache
44+
key: ${{ runner.os }}-docker-${{ hashfiles('cache/**') }}
45+
restore-keys: |
46+
${{ runner.os }}-docker
47+
- name: Build and push
48+
id: docker_build
49+
uses: docker/build-push-action@v2
50+
with:
51+
platforms: ${{ env.platforms }}
52+
push: ${{ github.event_name != 'pull_request' }}
53+
tags: ${{ steps.docker_meta.outputs.tags }}
54+
labels: ${{ steps.docker_meta.outputs.labels }}
55+
cache-from: type=local,src=${{ github.workspace }}/cache
56+
cache-to: type=local,dest=${{ github.workspace }}/cache
57+
# - name: Run Trivy vulnerability scanner
58+
# uses: aquasecurity/trivy-action@master
59+
# with:
60+
# image-ref: ${{ env.imageName }}:${{ steps.docker_meta.outputs.version }}
61+
# format: "template"
62+
# template: "@/contrib/sarif.tpl"
63+
# output: "trivy-results.sarif"
64+
# - name: Upload Trivy scan results to GitHub Security tab
65+
# uses: github/codeql-action/upload-sarif@v1
66+
# with:
67+
# sarif_file: "trivy-results.sarif"

.travis.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

Dockerfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
FROM beevelop/cordova
22

3-
ENV IONIC_VERSION 5.2.3
3+
ENV IONIC_VERSION 6.12.4
44

55
RUN apt-get update && apt-get install -y git bzip2 openssh-client && \
6-
npm i -g --unsafe-perm ionic@${IONIC_VERSION} && \
7-
ionic --no-interactive config set -g daemon.updates false && \
6+
npm install -g --unsafe-perm @ionic/cli@${IONIC_VERSION} && \
7+
ionic --version && \
8+
cd /tmp && \
9+
ionic start myNewProject blank --type=ionic-angular --capacitor && \
10+
cd myNewProject && \
11+
ionic build && \
12+
ionic capacitor build android --no-open && \
13+
rm -rf /tmp/myNewProject && \
814
rm -rf /var/lib/apt/lists/* && apt-get clean

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015-2019 Maik Hummel
3+
Copyright (c) 2015-2021 Maik Hummel
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
[![Travis](https://shields.beevelop.com/travis/beevelop/docker-ionic.svg?style=flat-square)](https://travis-ci.org/beevelop/docker-ionic)
21
[![Pulls](https://shields.beevelop.com/docker/pulls/beevelop/ionic.svg?style=flat-square)](https://links.beevelop.com/d-ionic)
32
[![Layers](https://shields.beevelop.com/docker/image/layers/beevelop/ionic/latest.svg?style=flat-square)](https://links.beevelop.com/d-ionic)
43
[![Size](https://shields.beevelop.com/docker/image/size/beevelop/ionic/latest.svg?style=flat-square)](https://links.beevelop.com/d-ionic)
@@ -7,30 +6,37 @@
76
[![Beevelop](https://links.beevelop.com/honey-badge)](https://beevelop.com)
87

98
# Latest Ionic
10-
### based on the latest Cordova with the latest Android and the latest Node.js
11-
----
9+
10+
### based on the latest Cordova with Android `11` and Node.js `14`
11+
12+
---
13+
1214
### Pull from Docker Hub
15+
1316
```
1417
docker pull beevelop/ionic:latest
1518
```
1619

1720
### Build from GitHub
21+
1822
```
1923
docker build -t beevelop/ionic github.com/beevelop/docker-ionic
2024
```
2125

2226
### Run image
27+
2328
```
2429
docker run -it beevelop/ionic bash
2530
```
2631

2732
### Use as base image
33+
2834
```Dockerfile
2935
FROM beevelop/ionic:latest
3036
```
3137

32-
33-
----
38+
---
3439

3540
### Use tags where possible, because...
41+
3642
![One does not simply use latest](https://i.imgflip.com/1fgwxr.jpg)

0 commit comments

Comments
 (0)