Merge pull request #1251 from tdakkota/fix/issue-1249 #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build image | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
docker: | |
permissions: write-all | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to ghcr | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push | |
run: | | |
docker buildx build . \ | |
--platform linux/amd64,linux/arm64 \ | |
--tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_REF_NAME \ | |
--tag ghcr.io/$GITHUB_REPOSITORY:latest \ | |
--push |