Create deploy.yml

This commit is contained in:
gartesa 2024-12-09 11:53:58 +01:00 committed by GitHub
commit 14d69c9521
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

30
.github/worflows/deploy.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Build and Deploy Docker Container
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to DockerHub
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: ${{ secrets.DOCKER_USERNAME }}/n8n:latest