Skip to content

feat: data token admin (#452) #107

feat: data token admin (#452)

feat: data token admin (#452) #107

Workflow file for this run

name: docker
on:
push:
tags:
- v*
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
# https://github.com/actions/checkout/releases/tag/v3.5.0
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
- name: Prepare tags
id: tags
run: |
export GITHUB_REF='${{ github.ref }}'
export GITHUB_SHA='${{ github.sha }}'
export AWS_ECR_URL='${{ secrets.AWS_ECR_URL }}'
python scripts/github/docker.py
- name: Set up QEMU
# https://github.com/docker/setup-qemu-action/releases/tag/v2.2.0
uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7
- name: Set up Docker Buildx
# https://github.com/docker/setup-buildx-action/releases/tag/v2.10.0
uses: docker/setup-buildx-action@885d1462b80bc1c1c7f0b00334ad271f09369c55
- name: Login to DockerHub
# https://github.com/docker/login-action/releases/tag/v2.2.0
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to AWS ECR
# https://github.com/docker/login-action/releases/tag/v2.2.0
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc
with:
registry: ${{ secrets.AWS_ECR_URL}}
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Build and push
# https://github.com/docker/build-push-action/releases/tag/v3.3.1
uses: docker/build-push-action@1104d471370f9806843c095c1db02b5a90c5f8b6
with:
push: true
tags: ${{ steps.tags.outputs.tags }}
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max