Skip to content

Merge pull request #1266 from ogen-go/dependabot/go_modules/github.co… #23

Merge pull request #1266 from ogen-go/dependabot/go_modules/github.co…

Merge pull request #1266 from ogen-go/dependabot/go_modules/github.co… #23

Workflow file for this run

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