mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-16 01:29:09 +00:00
chore: redo container publishing, port dev-container to bazel
This commit is contained in:
parent
101c476739
commit
b834066479
14 changed files with 129 additions and 603 deletions
16
.github/workflows/dev-container.yml
vendored
16
.github/workflows/dev-container.yml
vendored
|
@ -3,7 +3,9 @@ name: Build Dev Container
|
|||
on:
|
||||
push:
|
||||
paths:
|
||||
- .devcontainer/Dockerfile
|
||||
- .devcontainer/*
|
||||
- src/dev-container/*
|
||||
- .github/workflows/dev-container.yml
|
||||
schedule:
|
||||
- cron: "0 12 * * 2" # 12 noon every tuesday
|
||||
|
||||
|
@ -26,9 +28,17 @@ jobs:
|
|||
mv bazelisk-linux-amd64 "${GITHUB_WORKSPACE}/bin/bazel"
|
||||
chmod +x "${GITHUB_WORKSPACE}/bin/bazel"
|
||||
|
||||
- name: Docker Login
|
||||
run: |
|
||||
echo ${{secret.DOCKER_PASSWORD}} | docker login -u ${{secret.DOCKER_USERNAME}} --password-stdin
|
||||
echo ${{github.token}} | docker login -u ${{github.actor}} --password-stdin docker.pkg.github.com
|
||||
|
||||
- name: Build & Publish Dev Container
|
||||
run: |
|
||||
"${GITHUB_WORKSPACE}/bin/bazel" run \
|
||||
--stamp \
|
||||
--workspace_status_command hack/workspace_status.sh\
|
||||
//.devcontainer:publish-dev-container
|
||||
--workspace_status_command hack/workspace_status.sh \
|
||||
//src/dev-container:publish-dev-container
|
||||
"${GITHUB_WORKSPACE}/bin/bazel" run \
|
||||
--stamp \
|
||||
//src/dev-container:publish-dev-container-dockerhub
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue