Skip to content

Merge pull request #71 from eol-uchile/Matic0/add-member #75

Merge pull request #71 from eol-uchile/Matic0/add-member

Merge pull request #71 from eol-uchile/Matic0/add-member #75

Workflow file for this run

name: Docker Image CI
on:
push:
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.ref == 'refs/heads/master' }}
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push to Github Container Registry
if: ${{ github.ref == 'refs/heads/master' }}
run: |
docker push ghcr.io/eol-uchile/portal-eol:${GITHUB_SHA}
webhook:
needs: [ build ]
if: ${{ github.ref == 'refs/heads/master' }}
uses: ./.github/workflows/webhook.yml
secrets: inherit