Bacpop 186 v9 db #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build and push docker images | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- "*" | |
env: | |
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Login to GHCR (GitHub Packages) | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build Server image | |
run: app/server/docker/build | |
- name: Build Proxy image | |
run: proxy/docker/build | |
- name: Docker smoke test | |
run: scripts/docker_smoke_test | |
- name: Push Server image branch ${{ env.BRANCH_NAME }} | |
run: app/server/docker/push | |
- name: Push Proxy image branch ${{ env.BRANCH_NAME }} | |
run: proxy/docker/push |