steps: - name: Build container image branches: "!master" agents: queue: default os: linux commands: - buildah bud --format=docker --layers -f Dockerfile . - name: Build & push container image branches: "master" agents: queue: default os: linux commands: - buildah bud --format=docker --layers -t embarkstudios/wireguard-ui:latest -f Dockerfile . - buildah push --format=v2s2 --authfile /root/.dockerhub/config.json embarkstudios/wireguard-ui:latest - name: Build and push debug container image branches: "master" agents: queue: default os: linux commands: - buildah bud --format=docker --layers -t embarkstudios/wireguard-ui:debug -f Dockerfile.debug . - buildah push --format=v2s2 --authfile /root/.dockerhub/config.json embarkstudios/wireguard-ui:debug