mirror of
https://github.com/stonith404/pingvin-share.git
synced 2025-01-15 01:14:27 -05:00
Add build action
This commit is contained in:
parent
c0e1caf543
commit
c15cb062a8
1 changed files with 25 additions and 0 deletions
25
.github/workflows/docker-image.yml
vendored
Normal file
25
.github/workflows/docker-image.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
name: Docker Image CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches: main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: install buildx
|
||||||
|
id: buildx
|
||||||
|
uses: crazy-max/ghaction-docker-buildx@v1
|
||||||
|
with:
|
||||||
|
version: latest
|
||||||
|
- name: login to docker registry
|
||||||
|
run: echo "${{ secrets.GHP_TOKEN }}" | docker login ghcr.io -u "${{ secrets.GH_USER }}" --password-stdin
|
||||||
|
- name: build the image
|
||||||
|
run: |
|
||||||
|
docker buildx build --push \
|
||||||
|
--tag ghcr.io/${{ github.repository }}:latest \
|
||||||
|
--platform linux/amd64,linux/arm64 .
|
Loading…
Add table
Reference in a new issue