chore(ci): build devcontainer image #251
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 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 }} |