Skip to content

Commit

Permalink
Update release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
mbround18 authored Jan 26, 2024
1 parent 449a214 commit 317f0e5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
push:
tags:
- '*'
env:
IMAGE_NAME: mbround18/palworld-docker

jobs:
release:
Expand All @@ -27,18 +29,18 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: name/app
images: ${{ env.IMAGE_NAME }}

- name: Build Palworld
- name: Build ${{ env.IMAGE_NAME }}
id: docker_build
uses: docker/build-push-action@v5
with:
file: ./Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=mbround18/palworld-docker:buildcache
cache-to: type=registry,ref=mbround18/palworld-docker:buildcache,mode=max
cache-from: type=registry,ref=${{ env.IMAGE_NAME }}:buildcache
cache-to: type=registry,ref=${{ env.IMAGE_NAME }}:buildcache,mode=max
build-args: |
"GITHUB_SHA=${GITHUB_SHA}"
"GITHUB_REF=${GITHUB_REF}"
Expand Down

0 comments on commit 317f0e5

Please sign in to comment.