updated actions #1157
Workflow file for this run
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: Build and Push Frontend Docker Image | |
on: | |
pull_request: | |
types: [closed] | |
branches: [develop] | |
release: | |
types: [released] | |
workflow_dispatch: | |
jobs: | |
build_push_frontend: | |
name: Build Frontend Docker Image | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check out the repo | |
uses: actions/[email protected] | |
- name: Set up Docker Buildx | |
uses: docker/[email protected] | |
with: | |
driver-opts: | | |
image=moby/buildkit:buildx-stable-1 | |
network=host | |
platforms: linux/amd64, linux/arm64 | |
- name: Setup .npmrc for repository | |
run: | | |
echo -e "@tiptap-pro:registry=https://registry.tiptap.dev/\n//registry.tiptap.dev/:_authToken=${{ secrets.TIPTAP_TOKEN }}" > .npmrc | |
- name: Login to Docker Hub | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Extract metadata (tags, labels) for Docker (Docker Hub) from Github Pull Request | |
id: meta_pr | |
uses: docker/[email protected] | |
with: | |
images: ${{ secrets.DOCKERHUB_USERNAME }}/plane-frontend | |
tags: type=raw,value=develop | |
- name: Build and Push to Docker Container Registry | |
uses: docker/[email protected] | |
with: | |
context: . | |
file: ./apps/app/Dockerfile.web | |
platforms: linux/arm64 | |
tags: ${{ steps.meta_pr.outputs.tags }} | |
push: true | |
env: | |
DOCKER_BUILDKIT: 1 | |
DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
DOCKET_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }} | |