1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-07-15 05:40:09 +02:00
pingvin-share/.github/workflows/docker-image-backend.yml

26 lines
716 B
YAML
Raw Normal View History

2022-10-10 17:59:02 +02:00
name: Create Docker Image for Backend
2022-05-11 14:28:10 +02:00
on:
push:
branches: main
2022-10-10 22:32:54 +02:00
paths:
2022-10-10 22:32:18 +02:00
- '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-05-11 14:28:10 +02:00
- name: build the image
run: |
docker buildx build --push \
2022-10-10 17:59:02 +02:00
--tag stonith404/pingvin-share-backend:latest \
2022-05-11 14:28:10 +02:00
--platform linux/amd64,linux/arm64 .