Skip to content

chore(deps): bump cheerio from 1.0.0-rc.12 to 1.0.0 #15

chore(deps): bump cheerio from 1.0.0-rc.12 to 1.0.0

chore(deps): bump cheerio from 1.0.0-rc.12 to 1.0.0 #15

Workflow file for this run

name: Docker Hub
on:
release:
types: [published]
pull_request:
types: [opened, synchronize]
env:
# Use docker.io for Docker Hub if empty
REGISTRY: docker.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
# QEMU for emulation
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
# Docker Buildx for creating multi arch docker images
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
# Login against a Docker registry
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=release,latest=true
type=ref,event=release,format=semver,pattern={{version}}
type=ref,event=pull_request,prefix=pr-,value=${{ github.event.number }}
# Build and push Docker image
# https://github.com/docker/build-push-action
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
experimental-build:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
# QEMU for emulation
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
# Docker Buildx for creating multi arch docker images
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
# Login against a Docker registry
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata for PR
id: meta_pr
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: pr-${{ github.event.number }}
# Build and push Docker image for PR
# https://github.com/docker/build-push-action
- name: Build and push Docker image for PR
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta_pr.outputs.tags }}