Skip to content

Build and push docker image #4

Build and push docker image

Build and push docker image #4

name: "Build and push docker image"
on:
[workflow_dispatch]
jobs:
Build:
runs-on: ubuntu-latest
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 GitHub container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: tibor309
password: ${{ secrets.GH_TOKEN }}
- name: Build and push image for amd64/arm64
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
file: ./Dockerfile
push: true
tags: ghcr.io/tibor309/webtop:kubuntu