mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-22 02:50:39 +08:00
Build container images for deployment
Signed-off-by: Adam Szkoda <adaszko@gmail.com>
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
name: Build and push container images
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- deploy/*
|
||||
|
||||
jobs:
|
||||
build-and-push-images:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
- name: Login to the container registry
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: gcr.io
|
||||
username: _json_key
|
||||
password: ${{ secrets.GCR_JSON_KEY }}
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Build and push radicle-node
|
||||
id: radicle-node
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
file: radicle-node/Dockerfile
|
||||
push: true
|
||||
tags: gcr.io/radicle-services/radicle-node:latest,gcr.io/radicle-services/radicle-node:${{ github.sha }}
|
||||
cache-from: type=registry,ref=gcr.io/radicle-services/radicle-node:latest
|
||||
cache-to: type=inline
|
||||
- name: Build and push radicle-httpd
|
||||
id: radicle-httpd
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
file: radicle-httpd/Dockerfile
|
||||
push: true
|
||||
tags: gcr.io/radicle-services/radicle-httpd:latest,gcr.io/radicle-services/radicle-httpd:${{ github.sha }}
|
||||
cache-from: type=registry,ref=gcr.io/radicle-services/radicle-httpd:latest
|
||||
cache-to: type=inline
|
||||
Reference in New Issue
Block a user