Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Commit

Permalink
Making docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
ineiti committed Aug 24, 2023
1 parent a646732 commit c6ffa95
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
jobs:
build:
name: Lint, build and test
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
if: false

steps:
- name: Checkout code
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
jobs:
# This is copied from https://docs.github.com/en/actions/publishing-packages/publishing-docker-images
build-and-push-image:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
Expand All @@ -20,16 +20,25 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/setup-node@v3
with:
node-version: 14

- name: Build requirements
run: |
sudo apt install -y protobuf-compiler
make configs webapp-proto
- name: Build and push Docker image for nodes
id: build-and-push
# id: build-and-push-backend
uses: docker/build-push-action@v4
with:
context: backend
push: true
tags: ghcr.io/c4dt/service-stainless-backend:latest

- name: Build and push Docker image
id: build-and-push
# id: build-and-push-webapp
uses: docker/build-push-action@v4
with:
context: webapp
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/services/
dist

0 comments on commit c6ffa95

Please sign in to comment.