1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-10-01 09:00:12 +02:00
pingvin-share/.github/workflows/docker-image.yml

26 lines
672 B
YAML
Raw Normal View History

2022-05-11 14:28:10 +02:00
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
2022-05-11 19:32:15 +02:00
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
2022-05-11 14:28:10 +02:00
- name: build the image
run: |
docker buildx build --push \
2022-05-11 16:02:05 +02:00
--tag stonith404/pingvin-share:latest \
2022-05-11 14:28:10 +02:00
--platform linux/amd64,linux/arm64 .