Skip to content

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

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 #21

Workflow file for this run

name: Docker Hub
on:
pull_request:
branches: [ main, master ]
push:
branches: [ main, master ]
release:
types: [published]
env:
REGISTRY: docker.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Tag as latest for releases
if: github.event_name == 'release'
env:
DOCKER_CLI_ABI: "1.42"
run: |
docker buildx imagetools create -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest ${{ steps.meta.outputs.tags }}
- name: Tag as experimental for pull requests
if: github.event_name == 'pull_request'
env:
DOCKER_CLI_ABI: "1.42"
run: |
docker buildx imagetools create -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:experimental ${{ steps.meta.outputs.tags }}
- name: Image digest
run: echo ${{ steps.build-and-push.outputs.digest }}