ci: build multi-arch db image
This commit is contained in:
parent
4457263599
commit
6c1f98aaf8
29
.github/workflows/dev-db-nightly.yml
vendored
29
.github/workflows/dev-db-nightly.yml
vendored
|
@ -33,19 +33,32 @@ jobs:
|
|||
contents: read
|
||||
packages: write
|
||||
steps:
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Get Current Date as Tag
|
||||
id: date
|
||||
run: echo "::set-output name=date::$(date +'%Y%m%d')"
|
||||
|
||||
- name: Docker Build & Push Action
|
||||
uses: mr-smithers-excellent/docker-build-push@v5.6
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
image: ${{ env.IMAGE_NAME }}
|
||||
tags: nightly-${{ steps.date.outputs.date }}, latest
|
||||
registry: ${{ env.REGISTRY }}
|
||||
dockerfile: docker/db.Dockerfile
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Docker Build & Push
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: .
|
||||
file: docker/db.Dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: |
|
||||
ghcr.io/ietf-tools/datatracker-db:nightly-${{ steps.date.outputs.date }}
|
||||
ghcr.io/ietf-tools/datatracker-db:latest
|
||||
|
|
Loading…
Reference in a new issue