Skip to content

Bump docker/setup-buildx-action from 2 to 3 (#58) #62

Bump docker/setup-buildx-action from 2 to 3 (#58)

Bump docker/setup-buildx-action from 2 to 3 (#58) #62

Workflow file for this run

name: default build
on:
push:
branches:
- master
tags:
- '*'
jobs:
push_to_registry:
name: Push Docker image to GitHub Container registry
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/gitbucket/gitbucket
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}