Bacpop-205 Fix network #26
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/#-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
# add --with-dev to below commands to build & push the dev image | |
- name: Build docker image | |
run: ./docker/build --with-dev # TODO: remove --with-dev before merge | |
- name: Push docker image | |
run: ./docker/push --with-dev # TODO: remove --with-dev before merge |