mirror of
https://github.com/stonith404/pingvin-share.git
synced 2024-11-05 15:30:14 +01:00
26 lines
672 B
YAML
26 lines
672 B
YAML
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.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
|
- name: build the image
|
|
run: |
|
|
docker buildx build --push \
|
|
--tag stonith404/pingvin-share:latest \
|
|
--platform linux/amd64,linux/arm64 .
|