Merge pull request #301 from projectcaluma/dependabot/npm_and_yarn/em… #158
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Ember Docker | |
on: | |
push: | |
branches: | |
- main | |
env: | |
ember-dir: ./ember | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout branch | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: yarn install | |
working-directory: ${{env.ember-dir}} | |
- name: Build App | |
run: yarn build | |
working-directory: ${{env.ember-dir}} | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Publish to Docker Hub | |
uses: docker/[email protected] | |
with: | |
context: ./ember | |
file: ./ember/Dockerfile | |
tags: ghcr.io/projectcaluma/caluma-portal-demo:latest | |
push: true |