Skip to content

fix branch name in workflow #1

fix branch name in workflow

fix branch name in workflow #1

Workflow file for this run

name: Build ghcr.io images
on:
push:
branches:
- master
env:
REGISTRY: ghcr.io
IMAGE_PREFIX: lacop/udrb-
jobs:
build-and-push-app:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to registry
uses: docker/#-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}app
- name: Build and push app image
uses: docker/build-push-action@v5
with:
context: .
file: ./app/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}