🔨 Add github actions
Some checks failed
Build and Push Dyson Sphere / build (push) Has been cancelled
Some checks failed
Build and Push Dyson Sphere / build (push) Has been cancelled
This commit is contained in:
32
.github/workflows/docker-build.yml
vendored
Normal file
32
.github/workflows/docker-build.yml
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
name: Build and Push Dyson Sphere
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest # x86_64 (default), avoids arm64 native module issues
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Log in to DockerHub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: DysonNetwork.Sphere
|
||||
push: true
|
||||
tags: xsheep2010/dyson-sphere:latest
|
||||
platforms: linux/amd64
|
Reference in New Issue
Block a user