Skip to content

build(deps): bump the docker group with 4 updates (#371) #393

build(deps): bump the docker group with 4 updates (#371)

build(deps): bump the docker group with 4 updates (#371) #393

Workflow file for this run

name: Publish
on:
push:
branches:
- main
jobs:
dockerhub:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
fetch-depth: 0
- name: Docker meta
id: meta
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81
with:
images: |
pomerium/datasource
tags: |
type=ref,event=branch
type=ref,event=pr
type=sha
type=raw,value=main,enable={{is_default_branch}}
- name: Set up QEMU
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349
- name: Log in to cloudsmith registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75
with:
context: .
platforms: linux/amd64,linux/arm64
file: pomerium-datasource.dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
gcr:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
fetch-depth: 0
- name: Docker meta
id: meta
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81
with:
images: |
gcr.io/pomerium-registry/pomerium-datasource-ip2location
tags: |
type=ref,event=branch
type=ref,event=pr
type=sha
- name: Set up QEMU
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349
- name: gcloud authenticate
uses: google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f
with:
project_id: ${{ secrets.GCP_PRODUCTION_PROJECT_ID }}
credentials_json: ${{ secrets.GCP_SERVICE_ACCOUNT }}
- name: gcloud sdk
uses: google-github-actions/setup-gcloud@6189d56e4096ee891640bb02ac264be376592d6a
- name: Log in to gcr registry
run: gcloud auth configure-docker
- name: Build
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75
with:
context: .
file: pomerium-datasource-ip2location.dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
secrets: |
"download_token=${{ secrets.IP2LOCATION_DOWNLOAD_TOKEN }}"