1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-07-04 16:30:13 +02:00
pingvin-share/.github/workflows/build-docker-image.yml

27 lines
720 B
YAML
Raw Normal View History

2022-10-11 22:35:13 +02:00
name: Create Docker Image
2022-05-11 14:28:10 +02:00
on:
push:
branches: main
2022-10-12 08:52:53 +02:00
paths:
- "frontend/**"
- "backend/**"
2022-05-11 14:28:10 +02:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
2022-10-10 17:59:02 +02:00
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
2022-05-11 14:28:10 +02:00
- 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-10-11 22:35:13 +02:00
- name: Build the image
2022-05-11 14:28:10 +02:00
run: |
2022-10-11 22:35:13 +02:00
docker buildx build --push \
--tag stonith404/pingvin-share:latest \
--platform linux/amd64,linux/arm64 .