Skip to content

chore(core): add configuration to the forward proxy server #7

chore(core): add configuration to the forward proxy server

chore(core): add configuration to the forward proxy server #7

Workflow file for this run

name: Build and Push Docker Image
on:
release:
types:
- published
- edited
pull_request:
branches:
- main
types:
- opened
- synchronize
- reopened
paths:
- core/**
- forward-proxy/**
- Dockerfile
- Makefile
concurrency:
group: "${{ github.workflow }}-${{ github.ref_name }}-${{ github.event_name }}"
cancel-in-progress: true
jobs:
build-and-push:
runs-on: ubuntu-latest
strategy:
matrix:
DEBIAN_TAG: ["trixie", "trixie-slim", "bullseye", "bullseye-slim", "buster", "buster-slim", "bookworm-slim", "bookworm"]
steps:
- name: Checkout Repo
uses: actions/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Login to DockerHub
if: github.event_name == 'release'
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and Push Docker image
uses: docker/[email protected]
with:
context: .
file: Dockerfile
platforms: linux/amd64,linux/arm64/v8
push: ${{ github.event_name == 'release' }}
tags: makepad/sfp:${{ (github.event_name == 'release' && github.event.release.tag_name) || github.sha }}-${{ matrix.DEBIAN_TAG }}
build-args: |
DEBIAN_TAG=${{ matrix.DEBIAN_TAG }}
cache-from: type=registry,ref=makepad/sfp:${{( github.event_name == 'release' && github.event.release.tag_name) || github.sha }}-${{ matrix.DEBIAN_TAG }}
cache-to: type=inline