fix(guide): Fix Guide modal image problem #64
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: Docker | |
on: | |
push: | |
branches: | |
- "canon" | |
- "dev" | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- "canon" | |
- "dev" | |
workflow_dispatch: | |
env: | |
APP_VERSION: 0.1.0 | |
jobs: | |
push: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 16.17 | |
- name: install node modules | |
run: npm install --legacy-peer-deps | |
- name: Log in to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.LOGIN_DOCKERHUB }} | |
password: ${{ secrets.PASSWORD_DOCKERHUB }} | |
- name: Extract metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/metadata-action@v4 | |
with: | |
images: arkulturtest/sidious | |
- name: Build and push canon Docker image | |
if: github.ref == 'refs/heads/canon' && github.event_name != 'pull_request' | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
push: true | |
tags: arkulturtest/sidious:canon, arkulturtest/sidious:${{ env.APP_VERSION }} | |
labels: ${{ steps.meta.outputs.labels }} | |
- name: Build and push dev docker image | |
if: github.ref == 'refs/heads/dev' && github.event_name != 'pull_request' | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
push: true | |
tags: arkulturtest/sidious:${{ env.APP_VERSION }}-dev, arkulturtest/sidious:dev | |
labels: ${{ steps.meta.outputs.labels }} |