Squashed commit of the following: commit fac38b9293c6963cbc081f05f67b36d652524956 Author: Oscar Dominguez <dominguez.celada@gmail.com> Date: Sun Oct 2 02:50:33 2022 +0200 ci(publish-docker): upgrade actions/checkout to v3 (#2721) commit f352646887682e80105ca758849415f9628dd336 Author: Oscar Dominguez <dominguez.celada@gmail.com> Date: Sun Oct 2 02:50:15 2022 +0200 ci(deploy-staging-netlify): upgrade actions/checkout to v3 (#2722) commit 7afc517620a5f649dc08b1bf5afd6af086f20af9 Author: Oscar Dominguez <dominguez.celada@gmail.com> Date: Sun Oct 2 02:49:57 2022 +0200 ci(deploy-prod): upgrade actions/checkout to v3 (#2723) commit 50f0540f5afcbd835fa6db89e575aead1023c9ff Author: Oscar Dominguez <dominguez.celada@gmail.com> Date: Sun Oct 2 02:49:45 2022 +0200 ci(codeql-analysis): upgrade actions/checkout to v3 (#2724) commit fc5d5ea131a553b1f38b272525f40941eea031ee Author: Oscar Dominguez <dominguez.celada@gmail.com> Date: Sun Oct 2 02:49:31 2022 +0200 ci(deploy-netlify): upgrade actions/checkout to v3 (#2725) commit 4e16962001800b633309c726f71ac476efba4e13 Author: Oscar Dominguez <dominguez.celada@gmail.com> Date: Sun Oct 2 02:47:40 2022 +0200 chore(PR template): fix typo (#2726)
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: Publish Docker image
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
push_to_registry:
|
|
name: Push Docker image to Docker Hub
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out the repo
|
|
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 in to Docker Hub
|
|
uses: docker/login-action@v2
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
- name: Extract metadata (tags, labels) for Docker
|
|
id: meta
|
|
uses: docker/metadata-action@v4
|
|
with:
|
|
images: hoppscotch/hoppscotch
|
|
flavor: |
|
|
latest=true
|
|
prefix=
|
|
suffix=
|
|
|
|
- name: Build and push Docker image
|
|
uses: docker/build-push-action@v3
|
|
with:
|
|
context: .
|
|
push: true
|
|
platforms: linux/amd64,linux/arm64/v8,linux/arm/v7
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
labels: ${{ steps.meta.outputs.labels }}
|