Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
catttam committed Jul 10, 2024
2 parents 60c82b4 + 7f3931d commit a96ddab
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: GHCR login
env:
GHCR_USERNAME: ${{ github.actor }}
GHCR_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
run: echo "${GHCR_TOKEN}" | docker login ghcr.io --username "${GHCR_USERNAME}" --password-stdin
- 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

0 comments on commit a96ddab

Please sign in to comment.