mirror of
https://github.com/csd4ni3l/bun-chome-yolk.git
synced 2025-11-05 05:57:56 +01:00
Add dockerhub action
This commit is contained in:
30
.github/workflows/dockerhub.yml
vendored
Normal file
30
.github/workflows/dockerhub.yml
vendored
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
name: Build and Push to Docker Hub
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Log in to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Build and Push Docker image
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
tags: ${{ secrets.DOCKERHUB_USERNAME }}/bun-chrome-yolk:latest
|
||||||
|
file: ./Dockerfile
|
||||||
Reference in New Issue
Block a user