Skip to content

chore(ci): build devcontainer image #251

chore(ci): build devcontainer image

chore(ci): build devcontainer image #251

Workflow file for this run

name: Build Images
on:
push:
branches:
- master
- production
jobs:
legacy:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build legacy image
uses: docker/build-push-action@v4
with:
push: true
file: apps/legacy/Dockerfile
tags: |
ghcr.io/${{ github.repository }}/legacy:${{ github.ref_name }}
site:
name: site
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build site image
uses: docker/build-push-action@v4
with:
push: true
context: .
file: apps/site/Dockerfile
tags: |
ghcr.io/${{ github.repository }}/site:${{ github.ref_name }}
server:
name: server
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build server image
uses: docker/build-push-action@v4
with:
push: true
file: apps/server/Dockerfile
tags: |
ghcr.io/${{ github.repository }}/server:${{ github.ref_name }}