-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (33 loc) · 1.01 KB
/
docker-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Docker deploy
on:
push:
branches: master
jobs:
buildx:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1
with:
version: latest
- name: Login to Docker Hub
run: docker login --username ${{ secrets.DOCKER_USERNAME }} --password ${{ secrets.DOCKER_TOKEN }}
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Run Buildx Backend
run: |
docker buildx build \
--platform linux/amd64,linux/arm64,linux/386,linux/arm/v7 \
--push \
./backend \
-t zskpoznan/zastepstwa_backend
- name: Run Buildx Frontend
run: |
docker buildx build \
--platform linux/amd64,linux/arm64,linux/386,linux/arm/v7 \
--push \
./frontend \
-t zskpoznan/zastepstwa_frontend