Skip to content

Commit

Permalink
Update ghcr.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RaniAgus authored May 28, 2024
1 parent 74228a4 commit c1694b0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ on:
- 'src/**'
workflow_dispatch:

# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a
# name for the Docker image that this workflow builds.
env:
REGISTRY: ghcr.io
IMAGE_NAME: java_docker_tutorial

# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:
build-and-push-image:
Expand All @@ -21,9 +27,9 @@ jobs:
matrix:
include:
- dockerfile: ./Dockerfile
image: ghcr.io/raniagus/java_docker_tutorial_web
image: ${{ env.REGISTRY }}/${{ github.actor }}/${{ env.IMAGE_NAME }}_web
- dockerfile: ./cron.Dockerfile
image: ghcr.io/raniagus/java_docker_tutorial_cron
image: ${{ env.REGISTRY }}/${{ github.actor }}/${{ env.IMAGE_NAME }}_cron
permissions:
contents: read
packages: write
Expand Down

0 comments on commit c1694b0

Please sign in to comment.