chore(deps-dev): bump the npm_and_yarn group across 1 directories with 1 update #387
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 Build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
release: | |
types: | |
- created | |
jobs: | |
build-push: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: docker/setup-buildx-action@v3 | |
- uses: docker/setup-qemu-action@v3 | |
- name: Login to dockerhub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- id: docker_meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: moscajs/aedes | |
tags: | | |
type=semver,pattern={{version}} | |
type=sha | |
type=ref,event=branch | |
labels: | | |
org.opencontainers.image.vendor=moscajs | |
org.opencontainers.image.documentation=https://github.com/moscajs/aedes-cli | |
org.opencontainers.image.authors=Daniel Lando <[email protected]> | |
org.opencontainers.image.url=https://github.com/moscajs/aedes-cli | |
maintainer=robertsLando | |
- name: Install dependencies (to skip install in docker build) | |
run: | | |
npm install --omit=dev | |
- name: build+push | |
timeout-minutes: 30 | |
uses: docker/build-push-action@v5 | |
with: | |
platforms: linux/arm64,linux/amd64,linux/arm/v6,linux/arm/v7 | |
context: . | |
file: docker/Dockerfile | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: ${{ steps.docker_meta.outputs.tags }} | |
labels: ${{ steps.docker_meta.outputs.labels }} | |