Skip to content

Commit

Permalink
build: Build infrastructure images
Browse files Browse the repository at this point in the history
  • Loading branch information
calmh committed Jul 1, 2023
1 parent 229b6a2 commit 7688409
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build-infra-dockers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build Infrastructure Images

on:
push:
branches:
- infrastructure

jobs:

docker-syncthing:
name: Build and push Docker images
runs-on: ubuntu-latest
environment: docker
strategy:
matrix:
pkg:
- stcrashreceiver
- strelaypoolsrv
- stupgrades
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile.${{ matrix.pkg }}
platforms: linux/amd64,linux/arm64
push: true
tags: syncthing/${{ matrix.pkg }}:latest

0 comments on commit 7688409

Please sign in to comment.