1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-10-16 15:17:25 +00:00
sophon/.github/workflows/build-docker-proxy.yml

19 lines
662 B
YAML

name: Build proxy image
on:
push:
branches: [ main ]
paths:
- "proxy/**"
jobs:
build:
name: "Build proxy image"
runs-on: ubuntu-latest
steps:
- name: "Checkout repository"
uses: actions/checkout@v2
- name: "Login to GitHub Containers"
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u Steffo99 --password-stdin
- name: "Build the docker container `ghcr.io/steffo99/sophon-proxy:latest`"
run: docker build ./proxy --tag ghcr.io/steffo99/sophon-proxy:latest
- name: "Upload the container to GitHub Containers"
run: docker push ghcr.io/steffo99/sophon-proxy:latest