Skip to content

Commit

Permalink
feat: Splatter ghcr.io publishing ( Fixes #33 )
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Sep 6, 2024
1 parent 330a05b commit 7310b3f
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 96 deletions.
39 changes: 38 additions & 1 deletion .github/workflows/TestBuildAndPublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -593,4 +593,41 @@ jobs:
if: ${{github.ref_name != 'main'}}
uses: ./
id: SplatterBranch

- name: Log in to ghcr.io
uses: docker/login-action@master
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker Metadata (for branch)
if: ${{github.ref_name != 'main' && github.ref_name != 'master' && github.ref_name != 'latest'}}
id: meta
uses: docker/metadata-action@master
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Extract Docker Metadata (for main)
if: ${{github.ref_name == 'main' || github.ref_name == 'master' || github.ref_name == 'latest'}}
id: metaMain
uses: docker/metadata-action@master
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: latest=true
- name: Build and push Docker image (from main)
if: ${{github.ref_name == 'main' || github.ref_name == 'master' || github.ref_name == 'latest'}}
uses: docker/build-push-action@master
with:
context: .
push: true
tags: ${{ steps.metaMain.outputs.tags }}
labels: ${{ steps.metaMain.outputs.labels }}
- name: Build and push Docker image (from branch)
if: ${{github.ref_name != 'main' && github.ref_name != 'master' && github.ref_name != 'latest'}}
uses: docker/build-push-action@master
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
77 changes: 0 additions & 77 deletions @.min.gzip.ps1

This file was deleted.

17 changes: 0 additions & 17 deletions @.min.ps1

This file was deleted.

Loading

0 comments on commit 7310b3f

Please sign in to comment.