Create docker-image.yml

This commit is contained in:
Lomig 2025-01-08 11:34:32 +01:00 committed by GitHub
parent d02b1cc28c
commit 35e3529525
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

30
.github/workflows/docker-image.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: lomigandtux/ubuntu-test:latest