Skip to content

ci(workflow): update merge queue and webhook #2

ci(workflow): update merge queue and webhook

ci(workflow): update merge queue and webhook #2

Workflow file for this run

name: Docker Image CI
on:
merge_group:
types: [checks_requested]
pull_request:
types:
- opened
- reopened
- synchronize
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --tag ghcr.io/eol-uchile/portal-eol:${GITHUB_SHA}
- name: Login to GitHub Container Registry
if: ${{ github.event_name == 'merge_group' }}
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push to Github Container Registry
if: ${{ github.event_name == 'merge_group' }}
run: |
docker push ghcr.io/eol-uchile/portal-eol:${GITHUB_SHA}
webhook:
needs: [ build ]
if: ${{ github.event_name == 'merge_group' }}
uses: ./.github/workflows/webhook.yml
secrets: inherit