File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Docker
2+
3+ on : workflow_dispatch
4+
5+ jobs :
6+ build-docker-container :
7+ name : Build and Deploy Docker Container with latest CLI
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/setup-node@v1
11+ with :
12+ node-version : 14.x
13+ - uses : actions/checkout@v2
14+ with :
15+ fetch-depth : 0
16+ - name : GitHub Container Registry Login
17+ run : echo ${GH_TOKEN} | docker login ghcr.io -u ionitron --password-stdin
18+ env :
19+ GH_TOKEN : ${{ secrets.GH_TOKEN }}
20+
21+ - name : Build Container
22+ run : |
23+ docker build \
24+ --build-arg IONIC_CLI_VERSION=$(npm info @ionic/cli dist-tags.latest) \
25+ --tag ghcr.io/${{ github.repository }}:latest \
26+ --tag ghcr.io/${{ github.repository}}:$(npm info @ionic/cli dist-tags.latest) \
27+ .
28+ - name : Push Container as latest
29+ run : docker push ghcr.io/${{ github.repository }}:latest
30+ - name : Push Container as version
31+ run : docker push ghcr.io/${{ github.repository }}:$(npm info @ionic/cli dist-tags.latest)
You can’t perform that action at this time.
0 commit comments