Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
catttam authored Jul 10, 2024
1 parent a96ddab commit f867497
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: Docker Image CI

on:
push:
branches: [ "main" ]
branches:
- main
- devel

jobs:

Expand All @@ -20,5 +22,9 @@ jobs:
- name: Build the Docker image
run: |
GHCR_IMAGE=ghcr.io/grycap/oscar-metrics
docker build . --file Dockerfile --output "type=image,push=true" --tag ${GHCR_IMAGE}:latest
if [[ $GITHUB_REF == refs/heads/devel ]]; then
TAGS="--tag ${GHCR_IMAGE}:devel"
else
TAGS="${GHCR_IMAGE}:latest"
fi
docker build . --file Dockerfile --output "type=image,push=true" ${TAGS}

0 comments on commit f867497

Please sign in to comment.