Skip to content

Build and push Docker image #73

Build and push Docker image

Build and push Docker image #73

# This workflow will build and push Docker images into ghcr.io/truongquangsb
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@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.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@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
with:
context: ./docker/table-diff-handle
file: ./docker/table-diff-handle/Dockerfile
push: true
tags: ${{ env.REGISTRY }}/truongquangsb/tablediffview:latest
- name: Build and push Update Table Reference image
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
with:
context: ./docker/update-table-reference
file: ./docker/update-table-reference/Dockerfile
push: true
tags: ${{ env.REGISTRY }}/truongquangsb/update-table-reference:latest