FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

automate docker container creation on every release · involvex/ionic-cli@462918b · GitHub

Repository navigation

Commit 462918b

Browse files
committed
automate docker container creation on every release
1 parent 54f4ea1 commit 462918b

2 files changed

Lines changed: 15 additions & 32 deletions

File tree

‎.github/workflows/cd.yml‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,18 @@ jobs:
3232
GIT_AUTHOR_EMAIL: hi@ionicframework.com
3333
GIT_COMMITTER_NAME: Ionitron
3434
GIT_COMMITTER_EMAIL: hi@ionicframework.com
35+
- name: GitHub Container Registry Login
36+
run: echo ${GH_TOKEN} | docker login ghcr.io -u ionitron --password-stdin
37+
env:
38+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
39+
- name: Build Container
40+
run: |
41+
docker build \
42+
--build-arg IONIC_CLI_VERSION=$(npm info @ionic/cli dist-tags.latest) \
43+
--tag ghcr.io/${{ github.repository }}:latest \
44+
--tag ghcr.io/${{ github.repository}}:$(npm info @ionic/cli dist-tags.latest) \
45+
.
46+
- name: Push Container as latest
47+
run: docker push ghcr.io/${{ github.repository }}:latest
48+
- name: Push Container as version
49+
run: docker push ghcr.io/${{ github.repository }}:$(npm info @ionic/cli dist-tags.latest)

‎.github/workflows/docker.yml‎

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

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL