mirror of
https://github.com/ravenscroftj/turbopilot.git
synced 2024-10-01 05:06:01 +00:00
replace docker build pipeline
This commit is contained in:
parent
29b7412ced
commit
7f8ebb3909
42
.github/workflows/docker-image.yml
vendored
42
.github/workflows/docker-image.yml
vendored
@ -19,15 +19,37 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
|
# Add support for more platforms with QEMU (optional)
|
||||||
|
# https://github.com/docker/setup-qemu-action
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
|
||||||
- name: Publish Docker Image to GitHub Registry
|
- name: Set up Docker BuildX
|
||||||
# You may pin to the exact commit or the version.
|
uses: docker/setup-buildx-action@v2
|
||||||
# uses: TilBlechschmidt/gp-docker-action@f89287d44556dd7d24f76c799cd0795eeb352bcf
|
|
||||||
uses: TilBlechschmidt/gp-docker-action@v0.2-alpha
|
|
||||||
with:
|
with:
|
||||||
# GitHub token to push Docker image to GitHub Packages
|
platforms: linux/amd64,linux/arm64
|
||||||
github-token: ${{ secrets.GH_TOKEN }}
|
|
||||||
# Docker Image name
|
- name: Login to GH ContainerHub
|
||||||
image-name: turbopilot
|
uses: docker/login-action@v2
|
||||||
# Path to the directory where the Dockerfile resides
|
with:
|
||||||
dockerfile-path: . # optional, default is .
|
registry: ghcr.io
|
||||||
|
username: ravenscroftj
|
||||||
|
password: ${{ secrets.GH_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v4
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
tags: ghcr.io/ravenscroftj/turbopilot
|
||||||
|
|
||||||
|
# - name: Publish Docker Image to GitHub Registry
|
||||||
|
# # You may pin to the exact commit or the version.
|
||||||
|
# # uses: TilBlechschmidt/gp-docker-action@f89287d44556dd7d24f76c799cd0795eeb352bcf
|
||||||
|
# uses: TilBlechschmidt/gp-docker-action@v0.2-alpha
|
||||||
|
# with:
|
||||||
|
# # GitHub token to push Docker image to GitHub Packages
|
||||||
|
# github-token: ${{ secrets.GH_TOKEN }}
|
||||||
|
# # Docker Image name
|
||||||
|
# image-name: turbopilot
|
||||||
|
# # Path to the directory where the Dockerfile resides
|
||||||
|
# dockerfile-path: . # optional, default is .
|
||||||
|
Loading…
Reference in New Issue
Block a user