Skip to content

Build and push Docker image #64

Build and push Docker image

Build and push Docker image #64

# This workflow will build and push Docker images into ghcr.io/eclipse-set
name: 'Build and push Docker image'
on: workflow_dispatch
env:
REGISTRY: ghcr.io
jobs:
build-push:
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login into the container registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Github CLI image
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0
with:
context: .
file: ./docker/github-cli/Dockerfile
push: true
tags: ${{ env.REGISTRY }}/truongquangsb/github-cli:latest
- name: Build and push Table-Diff-View-handle
uses: docker/build-push-action@5176d81f87c23d6fc96624dfdbcd9f3830bbe445 # v6.5.0
with:
context: ./docker/table-diff-handle
file: ./docker/table-diff-handle/Dockerfile
push: true
tags: ${{ env.REGISTRY }}/truongquangsb/table-diff-view:latest
- name: Build and push Update-Table-Reference
uses: docker/build-push-action@5176d81f87c23d6fc96624dfdbcd9f3830bbe445 # v6.5.0
with:
context: ./docker/update-table-reference
file: ./docker/update-table-reference/Dockerfile
push: true
tags: ${{ env.REGISTRY }}/truongquangsb/update-table-reference:latest