Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ar2rsawseen authored Dec 8, 2021
1 parent fd104c7 commit 59a2cf4
Showing 1 changed file with 36 additions and 6 deletions.
42 changes: 36 additions & 6 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Publish Docker image

on:
push:
branches:
- 'master'
release:
types: [published]

Expand All @@ -14,6 +11,17 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}

- name: Check output
env:
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
run: |
echo $RELEASE_VERSION
echo ${{ steps.vars.outputs.tag }}
- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
Expand All @@ -26,14 +34,25 @@ jobs:
with:
context: .
push: true
tags: countly/countly-server:latest,countly/countly-server:21.11.0
tags: countly/countly-server:latest,countly/countly-server:${{ steps.vars.outputs.tag }}

push_api:
name: Push Countly API Image
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}

- name: Check output
env:
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
run: |
echo $RELEASE_VERSION
echo ${{ steps.vars.outputs.tag }}
- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
Expand All @@ -46,14 +65,25 @@ jobs:
with:
push: true
file: ./Dockerfile-api
tags: countly/api:latest,countly/api:21.11.0
tags: countly/api:latest,countly/api:${{ steps.vars.outputs.tag }}

push_frontend:
name: Push Countly Frontend Image
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}

- name: Check output
env:
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
run: |
echo $RELEASE_VERSION
echo ${{ steps.vars.outputs.tag }}
- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
Expand All @@ -66,4 +96,4 @@ jobs:
with:
push: true
file: ./Dockerfile-frontend
tags: countly/frontend:latest,countly/frontend:21.11.0
tags: countly/frontend:latest,countly/frontend:${{ steps.vars.outputs.tag }}

0 comments on commit 59a2cf4

Please sign in to comment.