This repository has been archived by the owner on Sep 1, 2023. It is now read-only.
Making docker images #2
Workflow file for this run
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
name: Build docker | |
on: | |
push: | |
jobs: | |
# This is copied from https://docs.github.com/en/actions/publishing-packages/publishing-docker-images | |
build-and-push-image: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Log into registry ${{ env.REGISTRY }} | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build requirements | |
cmd: make | |
- name: Build and push Docker image for nodes | |
id: build-and-push | |
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 | |
uses: docker/build-push-action@v4 | |
with: | |
context: webapp | |
push: true | |
tags: ghcr.io/c4dt/service-stainless-webapp:latest |