2023-02-01 22:36:56 +00:00
|
|
|
name: Push containers
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "main" ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: bazelbuild/setup-bazelisk@v2
|
|
|
|
- name: Mount bazel cache # Optional
|
|
|
|
uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: "~/.cache/bazel"
|
|
|
|
key: bazel
|
2023-02-01 22:41:32 +00:00
|
|
|
- name: Log into GCR
|
|
|
|
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
|
2023-02-01 22:36:56 +00:00
|
|
|
- name: Push containers
|
|
|
|
run: |
|
|
|
|
bazel run //apollo/server:server.push
|
|
|
|
bazel run //apollo/rpmworker:rpmworker.push
|
|
|
|
bazel run //apollo/rhworker:rhworker.push
|