Skip to content

Commit

Permalink
Merge pull request #22 from cornellrocketryteam/fix-github-action
Browse files Browse the repository at this point in the history
Fix Ground Software build in Github action
  • Loading branch information
maxslarsson authored Sep 16, 2024
2 parents 0919f0f + 2b904d2 commit e8e4a33
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#
name: Create and publish the Ground Station Docker image

# Configures this workflow to run every time a change is pushed to the branch called `main` or a pull request to `main` is created
Expand All @@ -11,7 +10,7 @@ on:
# 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: ground-server
IMAGE_NAME: ${{ github.repository_owner }}/ground-server

# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:
Expand Down Expand Up @@ -40,6 +39,10 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=ref,event=branch
type=ref,event=pr
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
Expand Down

0 comments on commit e8e4a33

Please sign in to comment.