Sainan 3537c7e436
All checks were successful
Build / build (18) (push) Successful in 35s
Build / build (20) (push) Successful in 50s
Build Docker image / docker (push) Successful in 30s
Build / build (22) (push) Successful in 1m13s
add docker workflow using docker hub as remote
2025-02-03 22:50:35 +01:00

25 lines
765 B
YAML

name: Build Docker image
on:
push:
branches:
- main
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up Docker buildx
uses: docker/setup-buildx-action@v3
- name: Log in to container registry
uses: docker/login-action@v3
with:
username: openwf
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
tags: |
openwf/spaceninjaserver:latest
openwf/spaceninjaserver:${{ github.sha }}