Skip to content

Commit dd461ab

Browse files
committed
add back manual docker container deploy
1 parent 13c1184 commit dd461ab

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/docker.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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)

0 commit comments

Comments
 (0)