-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates to Docker build and README (#336)
- Updates README (here and in DockerHub) - Fixes bug that posted README updates to `tloncorp/urbit` instead of `tloncorp/vere` - Moves DockerHub deploy tasks in build to separate workflow - Adds a workflow which allows on-demand GitHub Action to redeploy Docker image to DockerHub
- Loading branch information
Showing
8 changed files
with
159 additions
and
80 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: Deploy to DockerHub once | ||
|
||
on: | ||
workflow_dispatch | ||
|
||
jobs: | ||
docker: | ||
uses: ./.github/workflows/docker-shared.yml | ||
with: | ||
pace: 'edge' | ||
secrets: inherit |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: docker | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
pace: | ||
description: 'Release pace' | ||
type: string | ||
default: 'edge' | ||
required: false | ||
|
||
jobs: | ||
urbit: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- uses: christian-korneck/update-container-description-action@v1 | ||
env: | ||
DOCKER_USER: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKER_PASS: ${{ secrets.DOCKERHUB_TOKEN }} | ||
with: | ||
destination_container_repo: ${{ secrets.DOCKERHUB_USERNAME }}/vere | ||
provider: dockerhub | ||
short_description: 'Urbit: a clean-slate OS and network for the 21st century' | ||
readme_file: 'docker/README.md' | ||
|
||
- name: Build and push version-tagged Docker image | ||
run: bazel run //docker:push_version_x86_64 | ||
|
||
- name: Build and push pace-tagged Docker image | ||
run: bazel run //docker:push_pace_x86_64 | ||
|
||
- name: Build and push latest-tagged Docker image | ||
if: ${{ inputs.pace == 'live' }} | ||
run: bazel run //docker:push_latest_x86_64 |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,6 @@ name: shared | |
on: | ||
workflow_call: | ||
inputs: | ||
docker: | ||
description: 'Build and upload image to Docker Hub' | ||
type: boolean | ||
default: false | ||
required: false | ||
pace: | ||
description: 'Release pace' | ||
type: string | ||
|
@@ -183,42 +178,6 @@ jobs: | |
echo "upload to $target failed."; | ||
exit $exitcode | ||
# | ||
# DOCKER | ||
# | ||
- uses: docker/[email protected] | ||
if: ${{ inputs.docker && matrix.target == 'linux-x86_64' }} | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- uses: christian-korneck/update-container-description-action@v1 | ||
if: ${{ inputs.docker && matrix.target == 'linux-x86_64' }} | ||
env: | ||
DOCKER_USER: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKER_PASS: ${{ secrets.DOCKERHUB_TOKEN }} | ||
with: | ||
destination_container_repo: ${{ secrets.DOCKERHUB_USERNAME }}/urbit | ||
provider: dockerhub | ||
short_description: 'Urbit: a clean-slate OS and network for the 21st century' | ||
readme_file: 'docker/README.md' | ||
|
||
- name: Build and push version-tagged Docker image | ||
if: ${{ inputs.docker && matrix.target == 'linux-x86_64' }} | ||
run: | | ||
bazel run //docker:push_version_x86_64 | ||
- name: Build and push pace-tagged Docker image | ||
if: ${{ inputs.docker && matrix.target == 'linux-x86_64' }} | ||
run: | | ||
bazel run //docker:push_pace_x86_64 | ||
- name: Build and push latest-tagged Docker image | ||
if: ${{ inputs.docker && matrix.target == 'linux-x86_64' && inputs.pace == 'live' }} | ||
run: | | ||
bazel run //docker:push_latest_x86_64 | ||
upload-version-string: | ||
name: Upload latest deployed version string to GCP | ||
runs-on: ubuntu-latest | ||
|
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