Skip to content

library_updated

library_updated #393

Workflow file for this run

name: CI
on:
workflow_dispatch:
repository_dispatch:
types: [library_updated]
push:
branches: [master]
paths-ignore:
- '**/README.md'
jobs:
multi:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2.5.0
# with:
# persist-credentials: false
# - name: Reconfigure git to use HTTP authentication
# run: >
# git config --global url."https://github.com/".insteadOf
# ssh://git@github.com/
-
name: Docker meta
id: meta
uses: docker/metadata-action@v4.1.1
with:
# list of Docker images to use as base name for tags
images: |
us-central1-docker.pkg.dev/open-wa-31bb1/open-wa/wa-automate
ghcr.io/open-wa/wa-automate
openwa/wa-automate
# generate Docker tags based on the following events/attributes
tags: |
type=ref,event=pr
type=ref,event=branch,enable=${{ !endsWith(github.ref, github.event.repository.default_branch) }}
type=raw,value=latest
flavor: |
latest=false
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2.1.0
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.2.1
-
name: Login to Docker Hub
uses: docker/login-action@v2.1.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Login to GAR
uses: docker/login-action@v2.1.0
with:
username: _json_key
password: ${{ secrets.GCR_JSON_KEY }}
registry: us-central1-docker.pkg.dev
-
name: Login to GitHub Container Registry
uses: docker/login-action@v2.1.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
-
name: Build and push
uses: docker/build-push-action@v3.2.0
with:
context: .
file: ./Dockerfile
# platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64