Skip to content

Update Dev Container #432

Update Dev Container

Update Dev Container #432

Workflow file for this run

name: Publish to GitHub Container Registry
on:
push:
pull_request:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: haya14busa/action-cond@v1
id: checkpr
with:
cond: ${{ github.event_name == 'pull_request' }}
if_true: false
if_false: true
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Log in to the Container registry
uses: docker/login-action@master
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@master
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@master
with:
context: .
file: Parlance/Dockerfile
push: ${{ steps.checkpr.outputs.value }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}