Skip to content

Commit

Permalink
Create Build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Plajer authored Feb 1, 2022
1 parent ad21d9d commit 6b3f873
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Docker Action

on:
workflow_dispatch: {}
push:
branches:
- development
paths:
- client/*
- proxy/*
- server/*

jobs:
BuildDocker:
name: Build Image (${{ matrix.image }})
runs-on: ubuntu-latest
strategy:
matrix:
image: [client, server]
steps:
- name: Checking Repostiory
uses: actions/[email protected]
# - name: Setup multiarch
# uses: docker/setup-qemu-action@v1
- name: Setup Buildx
uses: docker/[email protected]
- name: Login DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build & Push Feedbacky Images (${{ matrix.image }})
uses: docker/build-push-action@v2
with:
context: ${{ matrix.image }}
file: ${{ matrix.image }}/Dockerfile
platforms: linux/amd64
push: true
tags: |
plajer/feedbacky-${{ matrix.image }}:latest
BuildDockerProxy:
name: Build Image (proxy)
runs-on: ubuntu-latest
needs: BuildDocker
steps:
- name: Checking Repostiory
uses: actions/[email protected]
# - name: Setup multiarch
# uses: docker/setup-qemu-action@v1
- name: Setup Buildx
uses: docker/[email protected]
- name: Login DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build & Push Feedbacky Images (Proxy)
uses: docker/build-push-action@v2
with:
context: proxy
file: proxy/Dockerfile
platforms: linux/amd64
push: true
tags: |
plajer/feedbacky-proxy:latest

0 comments on commit 6b3f873

Please sign in to comment.