Skip to content

setup buildx in docker build workflow #3

setup buildx in docker build workflow

setup buildx in docker build workflow #3

Workflow file for this run

name: Build and push docker image
on:
push:
branches:
- main
- docker-build-issue
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: m-adawi/swarm-cd:latest