Skip to content

chore(deps): update docker/setup-buildx-action action to v3 (#38) #34

chore(deps): update docker/setup-buildx-action action to v3 (#38)

chore(deps): update docker/setup-buildx-action action to v3 (#38) #34

Workflow file for this run

name: Build and push Docker image
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get repo name
id: get-repo
run: |
echo "repo=${GITHUB_REPOSITORY,,}" >> $GITHUB_OUTPUT
- name: Build and push
uses: docker/build-push-action@v5
with:
build-args: |
VERSION=${{ github.sha }}
push: true
tags: ghcr.io/${{ steps.get-repo.outputs.repo }}:latest
platforms: amd64