Skip to content

Commit

Permalink
update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinchai committed Feb 9, 2024
1 parent 9afe9c3 commit ab42429
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#
name: Create and publish a Docker image
name: Build Docker Image and Push to GitHub Container Registry

# Configures this workflow to run every time a change is pushed to the branch called `release`.
on:
push:
branches: ['main']
release:
types: [published]

# 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:
Expand Down Expand Up @@ -46,5 +45,5 @@ jobs:
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/magi:latest
ghcr.io/${{ github.repository_owner }}/magi:${{ github.run_id }}
ghcr.io/${{ github.repository_owner }}/magi:${{ github.event.release.tag_name }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit ab42429

Please sign in to comment.