Skip to content

WEB

WEB #3

Workflow file for this run

name: WEB
env:
REGISTRY: ghcr.io
IMAGE_NAME: web
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
on:
workflow_dispatch:
workflow_run:
workflows:
- NOTEBOOK
types:
- completed
push:
branches:
- master
paths:
- 'Dockerfile.web'
- 'provision/scripts/web/**'
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- run: echo "${{ github.actor }}/${{ env.IMAGE_NAME }} will be built and pushed to ${{ env.REGISTRY }}"
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ env.ACCESS_TOKEN }}
- uses: actions/checkout@v1
- name: Build and push ${{ env.IMAGE_NAME }} image
uses: ./.github/actions/build-and-push-image
with:
image-name: ${{ env.IMAGE_NAME }}